gst_pad_set_blocked_async callback called twice

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gst_pad_set_blocked_async callback called twice

J. Rios
Hello,
   I have this pipeline

playback bin
playbin2 ! audioconvert ! audioresample ! ... ! audioconvert ! audioresample ! tee  !  queue ! alsasink

record bin
queue ! audioconvert ! audioresample ! encoder ! filesink


I Want to add dynamically a record bin so I can record to file while listening so what I does is
1. get the source pad the tee is connected
2. block that source pad
3. in the blocked callback
  3.1 add the record element to the playbin
  3.2 link the sink pad of the record element to a new created tee source pad
  3.2 call to unlock the previously blocked pad

This have been working for me very well for latest ubuntu releases but fails in ubuntu oneiric.
The problem is that the blocked pad callback gets called twice. What can be wrong ?

Thanks in advance
Juan Rios
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst_pad_set_blocked_async callback called twice

Ralph
What about using valves instead of blocking the pads?
Just theoretising, I've never done it, but I suspect it might be a simpler solution.
Reply | Threaded
Open this post in threaded view
|

Re: gst_pad_set_blocked_async callback called twice

J. Rios
If I am not wrong valves drops buffers while blocking don't drop any data. That is the difference

On Tue, Jan 24, 2012 at 2:08 PM, Ralph <[hidden email]> wrote:
What about using valves instead of blocking the pads?
Just theoretising, I've never done it, but I suspect it might be a simpler
solution.

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-pad-set-blocked-async-callback-called-twice-tp4323582p4323819.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel