mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
update for API changes
Original commit message from CVS: update for API changes
This commit is contained in:
parent
9bd3add89c
commit
f688b2ee8f
4 changed files with 11 additions and 69 deletions
|
@ -1,3 +1,10 @@
|
|||
2005-09-26 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* gst/gst.defs:
|
||||
* gst/gstquery.override:
|
||||
* gst/libs.defs:
|
||||
update for API removals and changes
|
||||
|
||||
2005-09-23 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* examples/fvumeter.py:
|
||||
|
|
23
gst/gst.defs
23
gst/gst.defs
|
@ -3988,17 +3988,6 @@
|
|||
|
||||
|
||||
|
||||
;; From ../gstreamer/gst/gstqueryutils.h
|
||||
|
||||
(define-method parse_seeking_query
|
||||
(of-object "GstQuery")
|
||||
(c-name "gst_query_parse_seeking_query")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("GstFormat*" "format")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method set_seeking
|
||||
(of-object "GstQuery")
|
||||
(c-name "gst_query_set_seeking")
|
||||
|
@ -4011,18 +4000,6 @@
|
|||
)
|
||||
)
|
||||
|
||||
(define-method parse_seeking_response
|
||||
(of-object "GstQuery")
|
||||
(c-name "gst_query_parse_seeking_response")
|
||||
(return-type "none")
|
||||
(parameters
|
||||
'("GstFormat*" "format")
|
||||
'("gboolean*" "seekable")
|
||||
'("gint64*" "segment_start")
|
||||
'("gint64*" "segment_end")
|
||||
)
|
||||
)
|
||||
|
||||
(define-method set_formats
|
||||
(of-object "GstQuery")
|
||||
(c-name "gst_query_set_formats")
|
||||
|
|
|
@ -69,49 +69,7 @@ _wrap_gst_query_parse_convert (PyGstMiniObject *self)
|
|||
|
||||
return ret;
|
||||
}
|
||||
%%
|
||||
override gst_query_parse_seeking_query noargs
|
||||
static PyObject *
|
||||
_wrap_gst_query_parse_seeking_query (PyGstMiniObject *self)
|
||||
{
|
||||
GstFormat format;
|
||||
|
||||
if (GST_QUERY_TYPE(self->obj) != GST_QUERY_SEEKING) {
|
||||
PyErr_SetString(PyExc_TypeError, "Query is not a seeking query");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
gst_query_parse_seeking_query (GST_QUERY(self->obj), &format);
|
||||
|
||||
return pyg_enum_from_gtype(GST_TYPE_FORMAT, format);
|
||||
}
|
||||
%%
|
||||
override gst_query_parse_seeking_response noargs
|
||||
static PyObject *
|
||||
_wrap_gst_query_parse_seeking_response (PyGstMiniObject *self)
|
||||
{
|
||||
GstFormat format;
|
||||
gboolean seekable;
|
||||
gint64 segstart;
|
||||
gint64 segend;
|
||||
PyObject *ret;
|
||||
|
||||
if (GST_QUERY_TYPE(self->obj) != GST_QUERY_SEEKING) {
|
||||
PyErr_SetString(PyExc_TypeError, "Query is not a seeking query");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
gst_query_parse_seeking_response (GST_QUERY(self->obj), &format,
|
||||
&seekable, &segstart, &segend);
|
||||
|
||||
ret = PyList_New(0);
|
||||
PyList_Append(ret, pyg_enum_from_gtype(GST_TYPE_FORMAT, format));
|
||||
PyList_Append(ret, PyInt_FromLong((long) seekable));
|
||||
PyList_Append(ret, PyLong_FromLongLong(segstart));
|
||||
PyList_Append(ret, PyLong_FromLongLong(segend));
|
||||
|
||||
return ret;
|
||||
}
|
||||
%%
|
||||
override gst_query_new_position kwargs
|
||||
static PyObject *
|
||||
|
|
|
@ -201,9 +201,9 @@
|
|||
)
|
||||
)
|
||||
|
||||
(define-method sink_values
|
||||
(define-method sync_values
|
||||
(of-object "GstController")
|
||||
(c-name "gst_controller_sink_values")
|
||||
(c-name "gst_controller_sync_values")
|
||||
(return-type "gboolean")
|
||||
(parameters
|
||||
'("GstClockTime" "timestamp")
|
||||
|
@ -273,9 +273,9 @@
|
|||
)
|
||||
)
|
||||
|
||||
(define-method sink_values
|
||||
(define-method sync_values
|
||||
(of-object "GObject")
|
||||
(c-name "g_object_sink_values")
|
||||
(c-name "g_object_sync_values")
|
||||
(return-type "gboolean")
|
||||
(parameters
|
||||
'("GstClockTime" "timestamp")
|
||||
|
|
Loading…
Reference in a new issue