[gst-devel] state-changed callback

Albano Gheller albano.gheller at gmail.com
Mon Aug 27 22:01:29 CEST 2007


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?

More information about the gstreamer-devel mailing list