avfvideosrc: fix deadlock draining queue from the same thread
This commit is contained in:
parent
d7c6d240b5
commit
27c546ad1e
@ -601,7 +601,8 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
|
||||
|
||||
- (void)waitForQueueToDrain:(dispatch_queue_t)dispatchQueue
|
||||
{
|
||||
dispatch_sync (dispatchQueue, ^{});
|
||||
if (dispatchQueue != dispatch_get_current_queue())
|
||||
dispatch_sync (dispatchQueue, ^{});
|
||||
}
|
||||
|
||||
@end
|
||||
|
Loading…
x
Reference in New Issue
Block a user