[gst-devel] Adding a pad while PLAYING

Andy Wingo wingo at pobox.com
Fri Aug 10 00:36:24 CEST 2007


Hello,

"Steve Fink" <sphink at gmail.com> writes:

> I want
> to be able to send an event to my element and have it dynamically
> create a new pad, link it up to the same adder, and start feeding data
> from my element on the dynamic pad to the adder without stopping the
> pipeline.

Then, better to do this work from the application thread. Or rather,
anything other than the streaming thread. Or is this already the case?

> My
> activate_push function starts a new task that (for now) just returns
> an immediate EOS. I get this warning:
>
> (gst-launch-0.10:29592): GStreamer-WARNING **: adding flushing pad
> 'clip1' to running element 'cc'

Racy! EOS will probably cause the pad's task to stop. Anyways, rethink:
do your work from the main thread, if possible.

Perhaps I misunderstand and you are already doing things correctly, and
there is a bug somewhere. Post a minimal, minimal test case (really
minimal) and we will see what we can do.

Regards,

Andy.
-- 
http://wingolog.org/




More information about the gstreamer-devel mailing list