summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8cebe23)
raw | patch | inline | side by side (parent: 8cebe23)
author | Johan Dahlin <johan@gnome.org> | |
Thu, 29 Sep 2005 01:57:00 +0000 (01:57 +0000) | ||
committer | Johan 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
* 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 | patch | blob | history | |
gst/gstmessage.c | patch | blob | history |
diff --git a/ChangeLog b/ChangeLog
index 1f71721755b663d9210801aef1f24746abd1a0f9..68cf7b317b9dd5a6376dc2ac4ce569d342a32112 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+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):
diff --git a/gst/gstmessage.c b/gst/gstmessage.c
index d39b07cc7ecc87b98c3e4402d48142c063a512df..762853fcce4ed0b56953d4d38fd4d8e9fb4f683a 100644 (file)
--- a/gst/gstmessage.c
+++ b/gst/gstmessage.c
#include "gst_private.h"
#include "gsterror.h"
+#include "gstenumtypes.h"
#include "gstinfo.h"
#include "gstmessage.h"
#include "gsttaglist.h"
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;