summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2005-11-04 16:28:15 +0000
committerEdward Hervey <bilboed@bilboed.com>2005-11-04 16:28:15 +0000
commit489d9c24a5db0a2ecd26e9a004650788dd750e6f (patch)
tree91493249715f5c8c13138e744d87fe123ae7fbf8
parentbf88eeddbbeb1a15fcc84c7ec94c7511ffdebc86 (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--ChangeLog5
-rw-r--r--gst/gstpad.override4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6f4ec15..a5f9f34 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;