mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 23:42:28 +00:00
avfvideosrc: drop frames we get before we have a clock
https://bugzilla.gnome.org/show_bug.cgi?id=748054
This commit is contained in:
parent
1fce7dc228
commit
528871f571
1 changed files with 5 additions and 0 deletions
|
@ -861,6 +861,11 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
|
||||||
|
|
||||||
[self getSampleBuffer:sampleBuffer timestamp:×tamp duration:&duration];
|
[self getSampleBuffer:sampleBuffer timestamp:×tamp duration:&duration];
|
||||||
|
|
||||||
|
if (timestamp == GST_CLOCK_TIME_NONE) {
|
||||||
|
[bufQueueLock unlock];
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ([bufQueue count] == BUFFER_QUEUE_SIZE)
|
if ([bufQueue count] == BUFFER_QUEUE_SIZE)
|
||||||
[bufQueue removeLastObject];
|
[bufQueue removeLastObject];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue