[Bug 748643] gstpad: Add a new GST_PROBE_HANDLED return value for probes

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Aug 15 07:34:46 PDT 2015


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

Edward Hervey <bilboed at bilboed.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #302567|0                           |1
        is obsolete|                            |

--- Comment #9 from Edward Hervey <bilboed at bilboed.com> ---
Created attachment 309328
  --> https://bugzilla.gnome.org/attachment.cgi?id=309328&action=edit
gstpad: Add a new GST_PROBE_HANDLED return value for probes

In some cases, probes might want to handle the buffer/event/query
themselves and stop the data from travelling further downstream.

While this was somewhat possible with buffer/events and using
GST_PROBE_DROP, it was not applicable to queries, and would result
in the query failing.

With this new GST_PROBE_HANDLED value, the buffer/event/query will
be considered as successfully handled, will not be pushed further
and the appropriate return value (TRUE or GST_FLOW_OK) will be returned

This also allows probes to return a non-default GstFlowReturn when dealing
with buffer push. This can be done by setting the
GST_PAD_PROBE_INFO_FLOW_RETURN() field accordingly

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