diff options
author | Edward Hervey <bilboed@bilboed.com> | 2005-11-04 16:28:15 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2005-11-04 16:28:15 +0000 |
commit | 489d9c24a5db0a2ecd26e9a004650788dd750e6f (patch) | |
tree | 91493249715f5c8c13138e744d87fe123ae7fbf8 | |
parent | bf88eeddbbeb1a15fcc84c7ec94c7511ffdebc86 (diff) |
gst/gstpad.override: works better now we set the item to the proper position...
Original commit message from CVS:
* gst/gstpad.override:
works better now we set the item to the proper position...
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gst/gstpad.override | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,6 +1,11 @@ 2005-11-04 Edward Hervey <edward@fluendo.com> * gst/gstpad.override: + works better now we set the item to the proper position... + +2005-11-04 Edward Hervey <edward@fluendo.com> + + * gst/gstpad.override: Use proper GValue <-> MiniObject conversion function * examples/Makefile.am: * examples/sinkelement.py: diff --git a/gst/gstpad.override b/gst/gstpad.override index 6de6220..426a899 100644 --- a/gst/gstpad.override +++ b/gst/gstpad.override @@ -677,7 +677,7 @@ _wrap_gst_pad_query_position (PyGObject *self, PyObject *args) if ((gst_pad_query_position(GST_PAD (self->obj), (GstFormat*) &format, &cur))) { ret = PyList_New(2); PyList_SetItem(ret, 0, PyLong_FromLongLong(cur)); - PyList_SetItem(ret, 2, pyg_enum_from_gtype (GST_TYPE_FORMAT, format )); + PyList_SetItem(ret, 1, pyg_enum_from_gtype (GST_TYPE_FORMAT, format )); } else { Py_INCREF(Py_None); ret = Py_None; @@ -704,7 +704,7 @@ _wrap_gst_pad_query_duration (PyGObject *self, PyObject *args) if ((gst_pad_query_duration(GST_PAD (self->obj), (GstFormat*) &format, &cur))) { ret = PyList_New(2); PyList_SetItem(ret, 0, PyLong_FromLongLong(cur)); - PyList_SetItem(ret, 2, pyg_enum_from_gtype (GST_TYPE_FORMAT, format )); + PyList_SetItem(ret, 1, pyg_enum_from_gtype (GST_TYPE_FORMAT, format )); } else { Py_INCREF(Py_None); ret = Py_None; |