Playing/pausing bins within a running pipeline

Wim Taymans wim.taymans at gmail.com
Tue May 29 01:29:50 PDT 2012


On 05/29/2012 10:19 AM, Guillaume Dorchies wrote:
> Hello,
>
> I have this pipeline I add bin B dynamicly
>
> |-----------------------------|
> |bin A                      |
> |  source -> queue ->|\
> |-----------------------------| \
>                                   -> Adder -> queue -> sink
> |-----------------------------| /
> |bin B                      |/
> |  source -> queue ->|
> |-----------------------------|
>
> What I want to be able to do is pause "bin B", play it etc (without 
> affecting "bin A")
>
> I try gst_element_set_state (binB, GST_STATE_PAUSED); but this don't work
>
> I try :
> pad = gst_element_get_static_pad(binB, "src");
> gst_pad_set_blocked(pad,TRUE);
> But this block the pipeline
>
After you block the pad you need to unlink the pad to adder and release 
the adder pad. Playback
will then continue again. If you want restart B, request a new adder 
pad, link to B srcpad and
unblock the srcpad.

Wim
>
> Does someone know how to do this or where can I find an example ?
>
>
> Best regards
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list