mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
avfvideosrc: fix setting of buffer offset end
Don't set offset end to random values off the stack. https://bugzilla.gnome.org/show_bug.cgi?id=747352
This commit is contained in:
parent
f31127b9ff
commit
4fd0f7277a
1 changed files with 1 additions and 1 deletions
|
@ -918,7 +918,7 @@ didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer
|
|||
*buf = gst_core_video_texture_cache_get_gl_buffer (textureCache, *buf);
|
||||
|
||||
GST_BUFFER_OFFSET (*buf) = offset++;
|
||||
GST_BUFFER_OFFSET_END (*buf) = GST_BUFFER_OFFSET (buf) + 1;
|
||||
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