avfvideosrc: drop frames we get before we have a clock

https://bugzilla.gnome.org/show_bug.cgi?id=748054
This commit is contained in:
Ilya Konstantinov 2015-04-15 01:24:45 +03:00 committed by Sebastian Dröge
parent 1fce7dc228
commit 528871f571

View file

@ -861,6 +861,11 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
[self getSampleBuffer:sampleBuffer timestamp:&timestamp duration:&duration];
if (timestamp == GST_CLOCK_TIME_NONE) {
[bufQueueLock unlock];
return;
}
if ([bufQueue count] == BUFFER_QUEUE_SIZE)
[bufQueue removeLastObject];