mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
update for new api
Original commit message from CVS: update for new api
This commit is contained in:
parent
56f25a4653
commit
9357eeb14a
4 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-10-12 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* gst/gst.defs:
|
||||||
|
* gst/gstevent.override:
|
||||||
|
update for new API
|
||||||
|
|
||||||
2005-10-11 Edward Hervey <edward@fluendo.com>
|
2005-10-11 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
* gst/common.h:
|
* gst/common.h:
|
||||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
||||||
Subproject commit 54920e38c65eaf03ea52c21b14a6d104a56581a9
|
Subproject commit 615cf4d4506ef1ffb1f600c434fced1fa26b0f44
|
|
@ -1686,6 +1686,7 @@
|
||||||
(return-type "GstEvent*")
|
(return-type "GstEvent*")
|
||||||
(caller-owns-return #t)
|
(caller-owns-return #t)
|
||||||
(parameters
|
(parameters
|
||||||
|
'("gboolean" "update")
|
||||||
'("gdouble" "rate")
|
'("gdouble" "rate")
|
||||||
'("GstFormat" "format")
|
'("GstFormat" "format")
|
||||||
'("gint64" "start_value")
|
'("gint64" "start_value")
|
||||||
|
|
|
@ -55,6 +55,7 @@ static PyObject *
|
||||||
_wrap_gst_event_parse_newsegment (PyGstMiniObject *self)
|
_wrap_gst_event_parse_newsegment (PyGstMiniObject *self)
|
||||||
{
|
{
|
||||||
PyObject *ret;
|
PyObject *ret;
|
||||||
|
gboolean update;
|
||||||
gdouble rate;
|
gdouble rate;
|
||||||
GstFormat format;
|
GstFormat format;
|
||||||
gint64 start_value, stop_value, base;
|
gint64 start_value, stop_value, base;
|
||||||
|
@ -64,10 +65,11 @@ _wrap_gst_event_parse_newsegment (PyGstMiniObject *self)
|
||||||
return NULL;
|
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);
|
&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, PyFloat_FromDouble(rate));
|
||||||
PyList_Append (ret, pyg_enum_from_gtype (GST_TYPE_FORMAT, format));
|
PyList_Append (ret, pyg_enum_from_gtype (GST_TYPE_FORMAT, format));
|
||||||
PyList_Append (ret, PyLong_FromUnsignedLongLong(start_value));
|
PyList_Append (ret, PyLong_FromUnsignedLongLong(start_value));
|
||||||
|
|
Loading…
Reference in a new issue