Probe multiple pads at once
Sebastian Dröge
sebastian at centricular.com
Mon May 23 07:47:26 UTC 2016
On Sa, 2016-05-21 at 04:25 -0700, Fuentes wrote:
> 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.
There's nothing wrong in the code you pasted. Can you provide a full,
minimal/simplified testcase that reproduces your problem?
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160523/17957a4e/attachment.sig>
More information about the gstreamer-devel
mailing list