mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
avfvideosrc: make buffer offset start from zero
This commit is contained in:
parent
86e2539816
commit
89e5b60130
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue