It's work very well <br><br>But now I try to do a seek :)<br><br>If I make directly my seek on the souce of binB or on the bin nothing happens.<br><br>I try to block pad , seek , unblock pad but this don't work <br>
<br>Do you have any ideas ?<br><br>PS:<br>Code to block<br> pad = gst_element_get_static_pad(binB, "src");<br> gst_pad_set_blocked(pad,TRUE);<br> gst_pad_unlink(pad,adder_pad);<br> gst_element_release_request_pad(adder,adder_pad);<br>
gst_object_unref(adder_pad);<br> gst_object_unref(pad);<br><br><br>Code to unlock<br> adder_pad = gst_element_get_request_pad(adder, "sink%d");<br> g_assert(adder_pad != NULL);<br> gst_pad_link(gst_element_get_pad(bin,"src"),adder_pad);<br>
gst_pad_set_blocked(pad,FALSE);<br> gst_object_unref(pad);<br><br><br><div class="gmail_quote"><span class="HOEnZb"><font color="#888888"></font></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><div class="gmail_quote">2012/5/29 Wim Taymans <span dir="ltr"><<a href="mailto:wim.taymans@gmail.com" target="_blank">wim.taymans@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 05/29/2012 10:19 AM, Guillaume Dorchies wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I have this pipeline I add bin B dynamicly<br>
<br>
|-----------------------------<u></u>|<br>
|bin A |<br>
| source -> queue ->|\<br>
|-----------------------------<u></u>| \<br>
-> Adder -> queue -> sink<br>
|-----------------------------<u></u>| /<br>
|bin B |/<br>
| source -> queue ->|<br>
|-----------------------------<u></u>|<br>
<br>
What I want to be able to do is pause "bin B", play it etc (without affecting "bin A")<br>
<br>
I try gst_element_set_state (binB, GST_STATE_PAUSED); but this don't work<br>
<br>
I try :<br>
pad = gst_element_get_static_pad(<u></u>binB, "src");<br>
gst_pad_set_blocked(pad,TRUE);<br>
But this block the pipeline<br>
<br>
</blockquote></div>
After you block the pad you need to unlink the pad to adder and release the adder pad. Playback<br>
will then continue again. If you want restart B, request a new adder pad, link to B srcpad and<br>
unblock the srcpad.<br>
<br>
Wim<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<br>
Does someone know how to do this or where can I find an example ?<br>
<br>
<br>
Best regards<br>
<br></div></blockquote></blockquote></div></div></div></blockquote></div>