]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/commitdiff
gst/gstmessage.c (gst_message_new_state_changed): Use
authorJohan Dahlin <johan@gnome.org>
Thu, 29 Sep 2005 01:57:00 +0000 (01:57 +0000)
committerJohan Dahlin <johan@gnome.org>
Thu, 29 Sep 2005 01:57:00 +0000 (01:57 +0000)
Original commit message from CVS:
* gst/gstmessage.c (gst_message_new_state_changed): Use
GST_TYPE_STATE instead of G_TYPE_INT, mainly for language bindings
which does introspection.
Reviewed by Christian Schaller

ChangeLog
gst/gstmessage.c

index 1f71721755b663d9210801aef1f24746abd1a0f9..68cf7b317b9dd5a6376dc2ac4ce569d342a32112 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-09-28  Johan Dahlin  <johan@gnome.org>
+
+       * gst/gstmessage.c (gst_message_new_state_changed): Use
+       GST_TYPE_STATE instead of G_TYPE_INT, mainly for language bindings
+       which does introspection.
+       Reviewed by Christian Schaller
+
 2005-09-28  Stefan Kost  <ensonic@users.sf.net>
 
        * gst/gstinfo.c: (gst_debug_log_default):
index d39b07cc7ecc87b98c3e4402d48142c063a512df..762853fcce4ed0b56953d4d38fd4d8e9fb4f683a 100644 (file)
@@ -36,6 +36,7 @@
 
 #include "gst_private.h"
 #include "gsterror.h"
+#include "gstenumtypes.h"
 #include "gstinfo.h"
 #include "gstmessage.h"
 #include "gsttaglist.h"
@@ -368,8 +369,8 @@ gst_message_new_state_changed (GstObject * src, GstState old, GstState new)
 
   message = gst_message_new (GST_MESSAGE_STATE_CHANGED, src);
 
-  s = gst_structure_new ("GstMessageState", "old-state", G_TYPE_INT, (gint) old,
-      "new-state", G_TYPE_INT, (gint) new, NULL);
+  s = gst_structure_new ("GstMessageState", "old-state", GST_TYPE_STATE,
+      old, "new-state", GST_TYPE_STATE, new, NULL);
   gst_structure_set_parent_refcount (s, &message->mini_object.refcount);
   message->structure = s;