[Bug 796681] New: v4l2videodec: do not call streamon while pool is flushing
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Jun 26 14:54:01 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=796681
Bug ID: 796681
Summary: v4l2videodec: do not call streamon while pool is
flushing
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: m.tretter at pengutronix.de
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 372831
--> https://bugzilla.gnome.org/attachment.cgi?id=372831&action=edit
0001-v4l2videodec-do-not-call-streamon-while-pool-is-flus.patch
gst_v4l2_buffer_pool_flush() executes streamoff for the output, but
streamoff->streamon for the capture of the decoder.
gst_v4l2_buffer_pool_streamon() on capture assumes that is able to
resurrect the buffers from the pool, but acquiring buffers fails if the
buffer pool is still flushing.
The decoder needs to stop flushing the pools before calling
gst_v4l2_buffer_pool_flush() to restart the v4l2 device. Otherwise
starting the decoding thread might fail, because there are no buffers in
the capture pool.
This fixes a regression that was introduced in 97985a335c78
("v4l2videodec: Add dynamic resolution change support").
--
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