From 6af81f9d04ff3e29058f063b9c14bdcc1dd558b7 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 12 Jul 2005 10:13:53 +0000 Subject: [PATCH] gst/gstmessage.override: fixes in .parse_state_changed() and parse_tag() Original commit message from CVS: * gst/gstmessage.override: fixes in .parse_state_changed() and parse_tag() --- ChangeLog | 5 +++++ gst/gstmessage.override | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e2c916487b..0eff8631e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-07-12 Edward Hervey + + * gst/gstmessage.override: + fixes in .parse_state_changed() and parse_tag() + 2005-07-12 Edward Hervey * gst/gst-types.defs: diff --git a/gst/gstmessage.override b/gst/gstmessage.override index 470d7373d6..4f8c66754a 100644 --- a/gst/gstmessage.override +++ b/gst/gstmessage.override @@ -37,8 +37,8 @@ _wrap_gst_message_parse_state_changed (PyGstMiniObject *self) gst_message_parse_state_changed (GST_MESSAGE(self->obj), &old, &new); /* Return this as a tuple */ ret = PyList_New(2); - PyList_SET_ITEM(ret, 0, pyg_enum_from_gtype(GST_TYPE_ELEMENT_STATE, old)); - PyList_SET_ITEM(ret, 1, pyg_enum_from_gtype(GST_TYPE_ELEMENT_STATE, new)); + PyList_SET_ITEM(ret, 0, pyg_flags_from_gtype(GST_TYPE_ELEMENT_STATE, old)); + PyList_SET_ITEM(ret, 1, pyg_flags_from_gtype(GST_TYPE_ELEMENT_STATE, new)); return ret; } %% @@ -102,8 +102,7 @@ _wrap_gst_message_parse_tag (PyGstMiniObject *self) gst_message_parse_tag (GST_MESSAGE(self->obj), &taglist); - ret = PyList_New(0); - PyList_Append(ret, pyg_boxed_new (GST_TYPE_TAG_LIST, taglist, TRUE, TRUE)); + ret = pyg_boxed_new (GST_TYPE_TAG_LIST, taglist, TRUE, TRUE); return ret; }