[Bug 767413] tee: Properly handle return value when only 1 pad

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Jun 15 14:16:56 UTC 2016


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

--- Comment #5 from Xavier Claessens <xclaesse at gmail.com> ---
Tim: the nice trick here is we can remove a "branch" from a tee without idle
pad probe:

  gst_element_release_request_pad (tee, pad);
  gst_bin_remove (parent, sink);
  gst_element_set_state (sink, GST_STATE_NULL);

That sequence is safe (with the patch attached here), because if a buffer was
in the sink element, setting its state to NULL will return GST_FLOW_FLUSHING,
but since the pad was already removed from the tee, that return value is
ignored and GST_FLOW_OK (or GST_FLOW_UNLINKED if that was last pad and
allow-not-linked==FALSE) is propagated to the source.

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