gstreamer/sys
Jean-Christophe Trotin 7f763f2710 v4l2allocator: reference memory before the buffer is queued
In gst_v4l2_allocator_qbuf(), the memory is referenced after the
buffer is queued. Once queued (VIDIOC_QBUF), the buffer might be handled
by the V4L2 driver (e.g. decoded) and dequeued (gst_v4l2_allocator_dqbuf),
through a different thread, before the memory is referenced (gst_memory_ref).
In this case, in gst_v4l2_allocator_dqbuf(), the memory is unreferenced
(gst_memory_unref) before having been referenced: the memory refcount
reaches 0, and the memory is freed.
So, to avoid this crossing case, in gst_v4l2_allocator_qbuf(), the
memory shall be referenced before the buffer is queued.

https://bugzilla.gnome.org/show_bug.cgi?id=777399
2017-01-24 11:30:57 -05:00
..
directsound meson: directsound: Add ole32 library dependency 2016-10-21 06:01:16 -03:00
oss good: use new gst_element_class_add_static_pad_template() 2016-03-24 14:32:20 +02:00
oss4 oss4: remove dead mixer code 2014-05-02 09:41:19 +01:00
osxaudio osxaudio: Distribute device provider files 2016-09-07 15:35:06 -04:00
osxvideo osxvideo: Remove QuickTime references. 2016-08-31 05:52:37 +10:00
sunaudio good: use new gst_element_class_add_static_pad_template() 2016-03-24 14:32:20 +02:00
v4l2 v4l2allocator: reference memory before the buffer is queued 2017-01-24 11:30:57 -05:00
waveform waveformsink: Fix Memory leak using GST_PTR_FORMAT 2016-10-20 13:14:10 +03:00
ximage Add support for Meson as alternative/parallel build system 2016-08-20 11:21:12 +01:00
Makefile.am v4l2: Fix typo V4L_DIR intead of V4L2_DIR 2014-03-15 18:41:16 +01:00
meson.build Add support for Meson as alternative/parallel build system 2016-08-20 11:21:12 +01:00