gst/gstmessage.override: fixes in .parse_state_changed() and parse_tag()
authorEdward Hervey <bilboed@bilboed.com>
Tue, 12 Jul 2005 10:13:53 +0000 (10:13 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 12 Jul 2005 10:13:53 +0000 (10:13 +0000)
Original commit message from CVS:
* gst/gstmessage.override:
fixes in .parse_state_changed() and parse_tag()

ChangeLog
gst/gstmessage.override

index e2c9164..0eff863 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2005-07-12  Edward Hervey  <edward@fluendo.com>
 
+       * gst/gstmessage.override: 
+       fixes in .parse_state_changed() and parse_tag()
+
+2005-07-12  Edward Hervey  <edward@fluendo.com>
+
        * gst/gst-types.defs:
        * gst/gst.defs:
        Added GError wrapping,
index 470d737..4f8c667 100644 (file)
@@ -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;
 }