gst/gstmessage.c (gst_message_new_state_changed): Use

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
This commit is contained in:
Johan Dahlin 2005-09-29 01:57:00 +00:00
parent 8cebe23716
commit bdb214775d
2 changed files with 10 additions and 2 deletions

View file

@ -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):

View 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;