2011/6/17 Olivier Crête <olivier.cr...@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. _______________________________________________ telepathy mailing list telepathy@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/telepathy