mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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()
This commit is contained in:
parent
ae75cbd54b
commit
6af81f9d04
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue