Hi,

On Fri, 2011-06-17 at 18:04 -0400, Mystilleef wrote:
> On Fri, Jun 17, 2011 at 5:51 PM, Tiago Katcipis <katci...@inf.ufsc.br> wrote:
> >> ========================================================================
> >>        def __stream_created_cb(self, channel, stream):
> >>                print "Start of stream created!"
> >>                stream.connect("src-pad-added", self.__src_pad_added_cb)
> >>                srcpad = stream.get_property ("sink-pad")
> >>                from gst import element_factory_make, STATE_PLAYING
> >>                src = element_factory_make("audiotestsrc")
> >>                src.get_pad("src").link(srcpad)
> >>                src.set_property("is-live", True)
> >>                src.set_state(STATE_PLAYING)
> >>                self.__pipeline.add(src)
> >
> > here it seems to be the problem, self.__pipeline.add(src) and
> > src.set_state(STATE_PLAYING) should be called before you call
> > src.get_pad("src").link(srcpad). You can link pads of elements that belong
> > to the same pipeline (bin) and are on the same state.
>
> I think you're right. I also had to set "STATE_PLAYING" in an idle handler.

You don't have to change the state in a idle handler, it should matter.

-- 
Olivier Crête
olivier.cr...@collabora.com

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
telepathy mailing list
telepathy@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/telepathy

Reply via email to