GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

when GPUImageMovieWriter hasAudioTrack set YES , it's Crash.

Open jallens opened this issue 13 years ago • 1 comments

hi. I want to switch without audio or with audio in the recording process at any time.

In the SimpleVideoFilter example. I have a button to click; when I running the app, and during recording, I set :

movieWriter.hasAudioTrack = NO;

it's ok, and it still works. then I set(before movie finish) :

movieWriter.hasAudioTrack = YES;

it's crash.

jallens avatar Apr 09 '13 09:04 jallens

Exception Thrown:

* Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '* -[AVAssetWriter addInput:] Cannot call method when status is 2'

ChocoChipset avatar Apr 24 '13 21:04 ChocoChipset