[Bug 775015] New: gstv4l2bufferpool: lock flush_stop against regular qbuf

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Nov 24 15:03:51 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=775015

            Bug ID: 775015
           Summary: gstv4l2bufferpool: lock flush_stop against regular
                    qbuf
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: p.zabel at pengutronix.de
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 340688
  --> https://bugzilla.gnome.org/attachment.cgi?id=340688&action=edit
gstv4l2bufferpool: lock flush_stop against regular qbuf

Both gst_v4l2_buffer_pool_flush_stop and gst_v4l2_buffer_pool_qbuf manipulate
the pool->buffers array and they can be called from different threads.
Lock them properly and let flush_stop move the array contents into a temporary
array on the stack to avoid having to call release_buffer under the object
lock.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list