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:
Ilya Konstantinov 2015-04-05 05:37:09 +03:00 committed by Tim-Philipp Müller
parent f31127b9ff
commit 4fd0f7277a

View file

@ -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;