[Telepathy] gst.LinkError in Telepathy Farsight
Olivier Crête
olivier.crete at collabora.com
Fri Jun 17 15:26:35 PDT 2011
Hi,
On Fri, 2011-06-17 at 18:04 -0400, Mystilleef wrote:
> On Fri, Jun 17, 2011 at 5:51 PM, Tiago Katcipis <katcipis at 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.crete at collabora.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/telepathy/attachments/20110617/9dace4fa/attachment.pgp>
More information about the telepathy
mailing list