[gst-devel] element's STATE_CHANGE signal

Benjamin Otte in7y118 at public.uni-hamburg.de
Fri Jan 18 08:14:05 CET 2002


Is there a reason not to emit that signal?

If there isn't, here's a patch:

Index: gst/gstelement.c
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/gst/gstelement.c,v
retrieving revision 1.103
diff -u -r1.103 gstelement.c
--- gst/gstelement.c	2002/01/13 22:22:42	1.103
+++ gst/gstelement.c	2002/01/18 16:07:04
@@ -1035,7 +1035,8 @@

   GST_STATE (element) = GST_STATE_PENDING (element);
   GST_STATE_PENDING (element) = GST_STATE_VOID_PENDING;
-
+  g_signal_emit (G_OBJECT (element), gst_element_signals[STATE_CHANGE],
0, old_state, GST_STATE (element));
+
   parent = GST_ELEMENT_PARENT (element);

   if (parent && GST_IS_BIN (parent)) {





More information about the gstreamer-devel mailing list