Skip to content

gstreamer/pad: Add support for removing pad probes from the probe callback

While this allows to remove the pad probe multiple times, which would cause a g_warning(), this is not actually making the situation worse than before while making some code patterns easier to implement:

  • Probes could already be removed twice by return gst::PadProbeReturn::Remove and then calling pad.remove_probe()
  • Probes could be removed from a different pad than where they were added

As such let's go with the simple solution here for now and allow giving owned access to the probe id from the probe callback.

Fixes #286 (closed)

Merge request reports

Loading