summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-07-01 13:54:40 +0200
committerEdward Hervey <bilboed@bilboed.com>2009-07-01 13:54:40 +0200
commit13d2cb2145005c81e8ff3b11a9ad3f9594e80ae4 (patch)
treecf2c6bc4b675e8415c51b9bb094cd9b00940fd4c /gst
parent92d6245ff6c3373c1075b333853ec112baaf524d (diff)
gst.Event: wrap parse_new_segment_full()
Diffstat (limited to 'gst')
-rw-r--r--gst/gstevent.override24
1 files changed, 24 insertions, 0 deletions
diff --git a/gst/gstevent.override b/gst/gstevent.override
index 97ba7cb..9a22866 100644
--- a/gst/gstevent.override
+++ b/gst/gstevent.override
@@ -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);
+}