mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
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:
parent
8cebe23716
commit
bdb214775d
2 changed files with 10 additions and 2 deletions
|
@ -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>
|
2005-09-28 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* gst/gstinfo.c: (gst_debug_log_default):
|
* gst/gstinfo.c: (gst_debug_log_default):
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
|
|
||||||
#include "gst_private.h"
|
#include "gst_private.h"
|
||||||
#include "gsterror.h"
|
#include "gsterror.h"
|
||||||
|
#include "gstenumtypes.h"
|
||||||
#include "gstinfo.h"
|
#include "gstinfo.h"
|
||||||
#include "gstmessage.h"
|
#include "gstmessage.h"
|
||||||
#include "gsttaglist.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);
|
message = gst_message_new (GST_MESSAGE_STATE_CHANGED, src);
|
||||||
|
|
||||||
s = gst_structure_new ("GstMessageState", "old-state", G_TYPE_INT, (gint) old,
|
s = gst_structure_new ("GstMessageState", "old-state", GST_TYPE_STATE,
|
||||||
"new-state", G_TYPE_INT, (gint) new, NULL);
|
old, "new-state", GST_TYPE_STATE, new, NULL);
|
||||||
gst_structure_set_parent_refcount (s, &message->mini_object.refcount);
|
gst_structure_set_parent_refcount (s, &message->mini_object.refcount);
|
||||||
message->structure = s;
|
message->structure = s;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue