Commit bdb21477 authored by Johan Dahlin's avatar Johan Dahlin

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
parent 8cebe237
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):
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment