[Telepathy] gst.LinkError in Telepathy Farsight

Mystilleef mystilleef at gmail.com
Fri Jun 17 15:48:23 PDT 2011


2011/6/17 Olivier Crête <olivier.crete at collabora.com>:
> You want to do it in this order:
>
> 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.set_property("is-live", True)
>  self.__pipeline.add(src)
>  src.get_pad("src").link(srcpad)
>  src.set_state(STATE_PLAYING)
>

Still crashes. I spent all morning trying different orders. It crashes
or gives me a gst.LinkError, if the state is not put in an idle
handler. The only thing that solved it for me is putting the state in
the idle handler.


More information about the telepathy mailing list