Simplify the muxer cancel flow, now it just cancels the file importers and drain the remainings fifo.
This commit is contained in:
1 parent
40de19c125
commit
ccf675cefe
3 files changed
+32
-37
No files matched your search
@@ -248,17 +248,8 @@ static NSArray<NSString *> *_supportedFileFormats;
|
||||
{
|
||||
OSAtomicIncrement32(&_cancelled);
|
||||
|
||||
for (MP42Track *track in _outputsTracks) {
|
||||
[track.muxer_helper->fifo cancel];
|
||||
}
|
||||
|
||||
// wait until the demuxer thread exits
|
||||
dispatch_semaphore_wait(_doneSem, DISPATCH_TIME_FOREVER);
|
||||
|
||||
// stop all the related converters
|
||||
for (MP42Track *track in _outputsTracks) {
|
||||
[track.muxer_helper->converter cancel];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)enqueue:(MP42SampleBuffer *)sample
|
||||
|
||||
Reference in new issue
Block a user