Hi, what version of GStreamer are you using? I think only 0.11 (future 1.0) can be used through introspection. There are other programs that are being ported to introspection and that use GStreamer, such as Pitivi, I would look at them for ideas.
Regards, Tomeu On Tue, Nov 1, 2011 at 12:05, Angel Guzman Maeso <shaka...@gmail.com> wrote: > 2011/10/29 Pietro Battiston <m...@pietrobattiston.it> >> >> Il giorno sab, 29/10/2011 alle 10.57 +0200, Angel Guzman Maeso ha >> scritto: >> > Please, anybody can help me? I search on pygstreamer and GIR files >> > code and changelog and there is not reference for changes related with >> > syn-message::element. >> >> Nothing to do with the "This signal will not be emitted by default, you >> have to set up gst_bus_sync_signal_handler() as a sync handler if you >> want this signal to be emitted when a message is posted on the bus, like >> this:" I read in the documentation? >> (just a guess, I'm not an expert about gstreamer) >> >> Pietro >> > > Hi Pietro, > > Thanks for your response. > > Your response seems to be right, but it doesn't work on GTK3 with PyGi > > This line should enable the signal for the emission. > > bus.enable_sync_message_emission() > > The Gnome Bug #631901 shows that there is a problem with the signals > emitted: > > https://bugzilla.gnome.org/show_bug.cgi?id=631901 > > message::eos, message::error and sync-message::element are not emitted, just > "message" and "sync-message" without members. > > Maybe it is a problem with MiniObject support through GI. > > http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMessage.html > http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstMiniObject.html#GstMiniObject > > Using bus.connect('message', self.on_message) > > and > def on_message(self, bus, message): > print('message: {!r}'.format(message)) > > it show this traceback on close: > > Traceback (most recent call last): > File "test.py", line 62, in on_message > print('message: {!r}'.format(message)) > TypeError: unknown type GstMessage > > Also I found: > > "gst_bus_create_watch, since GSource aren't wrapped in pygtk > gst_bus_sync_signal_handler and gst_bus_async_signal_func since > these functions are used by the default bus handler anyway." > > http://ftp.tuwien.ac.at/hci/freedesktop.org/gstreamer/gst-python/gst/gstbus.override,v > > > _______________________________________________ > pygtk mailing list pygtk@daa.com.au > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ > _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/