avfvideosrc: make buffer offset start from zero

This commit is contained in:
Ole André Vadla Ravnås 2010-11-04 17:50:33 +01:00
parent 86e2539816
commit 89e5b60130

View file

@ -473,11 +473,9 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
gst_object_unref (clock);
clock = NULL;
offset++;
}
GST_BUFFER_OFFSET (buf) = offset;
GST_BUFFER_OFFSET (buf) = offset++;
GST_BUFFER_OFFSET_END (buf) = GST_BUFFER_OFFSET (buf) + 1;
GST_BUFFER_TIMESTAMP (buf) = timestamp;
GST_BUFFER_DURATION (buf) = duration;