mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
gst.Event: wrap parse_new_segment_full()
This commit is contained in:
parent
92d6245ff6
commit
13d2cb2145
1 changed files with 24 additions and 0 deletions
|
@ -285,3 +285,27 @@ _wrap_gst_event_parse_step (PyGstMiniObject * self)
|
|||
PyBool_FromLong(flush),
|
||||
PyBool_FromLong(intermediate));
|
||||
}
|
||||
%%
|
||||
override gst_event_parse_new_segment_full noargs
|
||||
static PyObject *
|
||||
_wrap_gst_event_parse_new_segment_full (PyGstMiniObject *self)
|
||||
{
|
||||
gboolean update;
|
||||
gdouble rate, applied_rate;
|
||||
GstFormat format;
|
||||
gint64 start_value, stop_value, base;
|
||||
|
||||
if (GST_EVENT_TYPE(self->obj) != GST_EVENT_NEWSEGMENT) {
|
||||
PyErr_SetString(PyExc_TypeError, "Even is not a 'NewSegment' event");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
gst_event_parse_new_segment_full (GST_EVENT(self->obj), &update, &rate,
|
||||
&applied_rate, &format,
|
||||
&start_value, &stop_value, &base);
|
||||
|
||||
return Py_BuildValue("(OddOLLL)",
|
||||
PyBool_FromLong(update),
|
||||
rate, applied_rate, pyg_enum_from_gtype (GST_TYPE_FORMAT, format),
|
||||
start_value, stop_value, base);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue