Probe multiple pads at once
Fuentes
alvaro.fuentes.zurita at gmail.com
Sat May 21 11:25:13 UTC 2016
Hello every one:
I got the following problem: When i try to probe a pad to unlink it and
relink with a newly created fakesink all works fine if i only do in one pad.
If instead i use a "for" loop to probe several element's to do the same
thing, all fail at link the pads with GST_PAD_LINK_REFUSED.
Here the piece of code that illustrates this:
for (int i = start; end <= i; --i)
{
GstPad* source = gst_pad_get_peer(&_pads[i]);
gst_pad_add_probe(
source,
GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM,
(GstPadProbeCallback)padBlockProbeFake,
&_swap(i),
NULL
);
g_object_unref(source);
}
Using only the code inside the for, all works fine. Using whit the for, all
fails.
Anyone can help me?
Many thanks in advance.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Probe-multiple-pads-at-once-tp4677713.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list