Skip to content

Commit

Permalink
Don't enable the audio track if it's already enabled. It can cause th…
Browse files Browse the repository at this point in the history
…e system to have two AVAssetWriters for audio going at once.
  • Loading branch information
Sean Meiners committed Sep 5, 2013
1 parent e86a27d commit 24d4c94
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions framework/Source/GPUImageOutput.m
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,10 @@ - (void)textureNoLongerNeededForTarget:(id<GPUImageInput>)textureTarget;
- (void)setAudioEncodingTarget:(GPUImageMovieWriter *)newValue;
{
_audioEncodingTarget = newValue;

_audioEncodingTarget.hasAudioTrack = YES;
if( ! _audioEncodingTarget.hasAudioTrack )
{
_audioEncodingTarget.hasAudioTrack = YES;
}
}

@end

0 comments on commit 24d4c94

Please sign in to comment.