mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gst/gstmessage.override: State change is a list and not a tuple
Original commit message from CVS: * gst/gstmessage.override: State change is a list and not a tuple * gst/gstpad.override: query_position() got busted in previous commit.
This commit is contained in:
parent
c52a37cd82
commit
6992f7de67
3 changed files with 34 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-07-03 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* gst/gstmessage.override:
|
||||
State change is a list and not a tuple
|
||||
* gst/gstpad.override:
|
||||
query_position() got busted in previous commit.
|
||||
|
||||
2006-07-03 Johan Dahlin <jdahlin@async.com.br>
|
||||
|
||||
reviewed by: Edward Hervey <edward@fluendo.com>
|
||||
|
|
|
@ -64,7 +64,7 @@ _wrap_gst_message_parse_state_changed (PyGstMiniObject *self)
|
|||
}
|
||||
gst_message_parse_state_changed (GST_MESSAGE(self->obj), &old, &new, &pen);
|
||||
|
||||
return Py_BuildValue("(OOO)",
|
||||
return Py_BuildValue("[OOO]",
|
||||
pyg_enum_from_gtype(GST_TYPE_STATE, old),
|
||||
pyg_enum_from_gtype(GST_TYPE_STATE, new),
|
||||
pyg_enum_from_gtype(GST_TYPE_STATE, pen));
|
||||
|
|
|
@ -690,6 +690,32 @@ _wrap_gst_pad_query_position (PyGObject *self, PyObject *args)
|
|||
return ret;
|
||||
}
|
||||
%%
|
||||
override gst_pad_query_duration args
|
||||
static PyObject *
|
||||
_wrap_gst_pad_query_duration (PyGObject *self, PyObject *args)
|
||||
{
|
||||
gint64 cur;
|
||||
gint format;
|
||||
PyObject *pformat;
|
||||
PyObject *ret;
|
||||
|
||||
pformat = (PyObject*)PyTuple_GetItem(args, 0);
|
||||
if (pyg_enum_get_value (GST_TYPE_FORMAT, pformat, &format)) {
|
||||
PyErr_SetString(PyExc_TypeError, "argument should be a GstFormat");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if ((gst_pad_query_duration(GST_PAD (self->obj), (GstFormat*) &format, &cur))) {
|
||||
ret = Py_BuildValue("(LO)", cur,
|
||||
pyg_enum_from_gtype (GST_TYPE_FORMAT, format));
|
||||
} else {
|
||||
Py_INCREF(Py_None);
|
||||
ret = Py_None;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
%%
|
||||
override gst_pad_query_convert kwargs
|
||||
static PyObject *
|
||||
_wrap_gst_pad_query_convert (PyGObject *self, PyObject *args, PyObject *kwargs)
|
||||
|
|
Loading…
Reference in a new issue