Skip to content

Commit

Permalink
Merge pull request BradLarson#1784 from marcvanolmen/fix_for_1783
Browse files Browse the repository at this point in the history
SimpleVideoFileFilter has wrong liveEncocding value during init issue BradLarson#1783
  • Loading branch information
BradLarson committed Oct 12, 2014
2 parents b559d06 + 752f18c commit 6597045
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions framework/Source/iOS/GPUImageMovieWriter.m
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,19 @@ - (void)initializeMovieWithOutputSettings:(NSDictionary *)outputSettings;
[assetWriter addInput:assetWriterVideoInput];
}

- (void)setEncodingLiveVideo:(BOOL) value
{
_encodingLiveVideo = value;
if (isRecording) {
NSAssert(NO, @"Can not change Encoding Live Video while recording");
}
else
{
assetWriterVideoInput.expectsMediaDataInRealTime = _encodingLiveVideo;
assetWriterAudioInput.expectsMediaDataInRealTime = _encodingLiveVideo;
}
}

- (void)startRecording;
{
alreadyFinishedRecording = NO;
Expand Down

0 comments on commit 6597045

Please sign in to comment.