[Bug 762330] New: Probe only flush events, is not possible

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Feb 19 15:35:32 UTC 2016


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

            Bug ID: 762330
           Summary: Probe only flush events, is not possible
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: linus.svensson at axis.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 321665
  --> https://bugzilla.gnome.org/attachment.cgi?id=321665&action=edit
Unit test for flush probe

It's not possible to install a pad probe, that only reacts to FLUSH events,
even though there is API for it.

> gst_pad_add_probe (pad, GST_PAD_PROBE_TYPE_EVENT_FLUSH, pad_probe_cb, NULL, NULL);

gst_pad_add_probe basically appends GST_PAD_PROBE_TYPE_ALL_BOTH to the mask, if
the user supplied mask didn't contain any probe type regarding data.

> if ((mask & GST_PAD_PROBE_TYPE_ALL_BOTH) == 0)
>   mask |= GST_PAD_PROBE_TYPE_ALL_BOTH;


Something should be fixed here. Either this behavior is wrong, or some
documentation is lacking. I made a unit test (if probes for only flush events
should work)

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