[Bug 743719] New: Changing bin state to NULL fails when there is a locked child which is locked
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Thu Jan 29 15:30:42 PST 2015
https://bugzilla.gnome.org/show_bug.cgi?id=743719
GStreamer | gstreamer (core) | git master
Summary: Changing bin state to NULL fails when there is a
locked child which is locked
Classification: Platform
Product: GStreamer
Version: git master
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: olivier.crete at ocrete.ca
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
If a pipeline (or any bin) has a child which has it's state locked and it's
last transition was a failure, then the pipeline/bin transition to the NULL
state will fail. But it is my understanding that
gst_element_set_state(GST_STATE_NULL) should never fail.
I'm attaching a patch that just transforms failure into success in the locked
case if the target is READY or NULL.
Python test program:
import sys
Gst.init(sys.argv)
p = Gst.Pipeline()
p.set_state(Gst.State.PLAYING)
s = Gst.ElementFactory.make("filesrc", None)
p.add(s)
s.set_locked_state(True)
s.set_state(Gst.State.PLAYING)
print p.set_state(Gst.State.NULL)
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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