mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
avfvideosrc: fix deadlock draining queue from the same thread
This commit is contained in:
parent
d7c6d240b5
commit
27c546ad1e
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue