From 9357eeb14a2ac03b259c3cb9bc4af95aca89488e Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Wed, 12 Oct 2005 01:53:56 +0000 Subject: [PATCH] update for new api Original commit message from CVS: update for new api --- ChangeLog | 6 ++++++ common | 2 +- gst/gst.defs | 1 + gst/gstevent.override | 6 ++++-- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index dbf498ad59..0c7ad320ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-10-12 Thomas Vander Stichele + + * gst/gst.defs: + * gst/gstevent.override: + update for new API + 2005-10-11 Edward Hervey * gst/common.h: diff --git a/common b/common index 54920e38c6..615cf4d450 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 54920e38c65eaf03ea52c21b14a6d104a56581a9 +Subproject commit 615cf4d4506ef1ffb1f600c434fced1fa26b0f44 diff --git a/gst/gst.defs b/gst/gst.defs index 4ce32edd1e..c7c9036228 100644 --- a/gst/gst.defs +++ b/gst/gst.defs @@ -1686,6 +1686,7 @@ (return-type "GstEvent*") (caller-owns-return #t) (parameters + '("gboolean" "update") '("gdouble" "rate") '("GstFormat" "format") '("gint64" "start_value") diff --git a/gst/gstevent.override b/gst/gstevent.override index 839bb32580..d5d921658a 100644 --- a/gst/gstevent.override +++ b/gst/gstevent.override @@ -55,6 +55,7 @@ static PyObject * _wrap_gst_event_parse_newsegment (PyGstMiniObject *self) { PyObject *ret; + gboolean update; gdouble rate; GstFormat format; gint64 start_value, stop_value, base; @@ -64,10 +65,11 @@ _wrap_gst_event_parse_newsegment (PyGstMiniObject *self) return NULL; } - gst_event_parse_newsegment (GST_EVENT(self->obj), &rate, &format, + gst_event_parse_newsegment (GST_EVENT(self->obj), &update, &rate, &format, &start_value, &stop_value, &base); - ret = PyList_New(0); + ret = PyList_New (0); + PyList_Append (ret, PyBool_FromLong(update)); PyList_Append (ret, PyFloat_FromDouble(rate)); PyList_Append (ret, pyg_enum_from_gtype (GST_TYPE_FORMAT, format)); PyList_Append (ret, PyLong_FromUnsignedLongLong(start_value));