How can I connect a "state-changed" signal without use the gtk_bus_add_watch()?
In the Aldegonde (http://ronald.bitfreak.net/aldegonde.php) with
GStreamer 0.8 it is possible to do it with the code:
g_signal_connect(playbin, "state-change", G_CALLBACK(cb_state), timer);
static void cb_state (GstElement *play, GstElementState old,
GstElementState new, gpointer data);
I change the code with:
"state-change" --> "state-changed"
GstElementState --> GstState
I can compile the code but durin the execution of the program I've got
the GLib-GObject warning: signal "state-changed" is invalid for
How can I solve the problem?
From: Andy Wingo <wingo@po...> - 2007-08-28 20:47:48
On Mon 27 Aug 2007 22:01, "Albano Gheller" <albano.gheller@...> writes:
> How can I connect a "state-changed" signal without use the
It is gst_bus_... :)
If you do not want to use the GLib mainloop, you are in for pain. That
said, connect to the "sync-message::state-changed" signal. See the
gst_bus_enable_sync_message_emission() docs for more details.
> > How can I connect a "state-changed" signal without use the
> > gtk_bus_add_watch()?
> It is gst_bus_... :)
> If you do not want to use the GLib mainloop, you are in for pain. That
In this way I can't use gtk_main() ?