mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gst/gst.defs: Update for API changes
Original commit message from CVS: * gst/gst.defs: Update for API changes * gst/gstquery.override: wrapper for query_parse_seeking()
This commit is contained in:
parent
5e1b07e151
commit
0d9a68bdbd
4 changed files with 72 additions and 18 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2005-11-29 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
|
* gst/gst.defs:
|
||||||
|
Update for API changes
|
||||||
|
* gst/gstquery.override:
|
||||||
|
wrapper for query_parse_seeking()
|
||||||
|
|
||||||
2005-11-24 Edward Hervey <edward@fluendo.com>
|
2005-11-24 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
* gst/gst.override:
|
* gst/gst.override:
|
||||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
||||||
Subproject commit ea1409191cc1e71273b2dbdd94e7ab5fc5a60a51
|
Subproject commit 33084fbe0531733bc02aa1d9de608206d5553a15
|
54
gst/gst.defs
54
gst/gst.defs
|
@ -4351,6 +4351,14 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
(define-function query_new_seeking
|
||||||
|
(c-name "gst_query_new_seeking")
|
||||||
|
(return-type "GstQuery*")
|
||||||
|
(parameters
|
||||||
|
'("GstFormat" "format")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
(define-method set_seeking
|
(define-method set_seeking
|
||||||
(of-object "GstQuery")
|
(of-object "GstQuery")
|
||||||
(c-name "gst_query_set_seeking")
|
(c-name "gst_query_set_seeking")
|
||||||
|
@ -4363,6 +4371,18 @@
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(define-method parse_seeking
|
||||||
|
(of-object "GstQuery")
|
||||||
|
(c-name "gst_query_parse_seeking")
|
||||||
|
(return-type "none")
|
||||||
|
(parameters
|
||||||
|
'("GstFormat*" "format")
|
||||||
|
'("gboolean*" "seekable")
|
||||||
|
'("gint64*" "segment_start")
|
||||||
|
'("gint64*" "segment_end")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
(define-method set_formats
|
(define-method set_formats
|
||||||
(of-object "GstQuery")
|
(of-object "GstQuery")
|
||||||
(c-name "gst_query_set_formats")
|
(c-name "gst_query_set_formats")
|
||||||
|
@ -6576,14 +6596,14 @@
|
||||||
(return-type "none")
|
(return-type "none")
|
||||||
(parameters
|
(parameters
|
||||||
'("GValue*" "value")
|
'("GValue*" "value")
|
||||||
'("int" "start")
|
'("gint" "start")
|
||||||
'("int" "end")
|
'("gint" "end")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
(define-function value_get_int_range_min
|
(define-function value_get_int_range_min
|
||||||
(c-name "gst_value_get_int_range_min")
|
(c-name "gst_value_get_int_range_min")
|
||||||
(return-type "int")
|
(return-type "gint")
|
||||||
(parameters
|
(parameters
|
||||||
'("const-GValue*" "value")
|
'("const-GValue*" "value")
|
||||||
)
|
)
|
||||||
|
@ -6591,7 +6611,7 @@
|
||||||
|
|
||||||
(define-function value_get_int_range_max
|
(define-function value_get_int_range_max
|
||||||
(c-name "gst_value_get_int_range_max")
|
(c-name "gst_value_get_int_range_max")
|
||||||
(return-type "int")
|
(return-type "gint")
|
||||||
(parameters
|
(parameters
|
||||||
'("const-GValue*" "value")
|
'("const-GValue*" "value")
|
||||||
)
|
)
|
||||||
|
@ -6602,14 +6622,14 @@
|
||||||
(return-type "none")
|
(return-type "none")
|
||||||
(parameters
|
(parameters
|
||||||
'("GValue*" "value")
|
'("GValue*" "value")
|
||||||
'("double" "start")
|
'("gdouble" "start")
|
||||||
'("double" "end")
|
'("gdouble" "end")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
(define-function value_get_double_range_min
|
(define-function value_get_double_range_min
|
||||||
(c-name "gst_value_get_double_range_min")
|
(c-name "gst_value_get_double_range_min")
|
||||||
(return-type "double")
|
(return-type "gdouble")
|
||||||
(parameters
|
(parameters
|
||||||
'("const-GValue*" "value")
|
'("const-GValue*" "value")
|
||||||
)
|
)
|
||||||
|
@ -6617,7 +6637,7 @@
|
||||||
|
|
||||||
(define-function value_get_double_range_max
|
(define-function value_get_double_range_max
|
||||||
(c-name "gst_value_get_double_range_max")
|
(c-name "gst_value_get_double_range_max")
|
||||||
(return-type "double")
|
(return-type "gdouble")
|
||||||
(parameters
|
(parameters
|
||||||
'("const-GValue*" "value")
|
'("const-GValue*" "value")
|
||||||
)
|
)
|
||||||
|
@ -6645,14 +6665,14 @@
|
||||||
(return-type "none")
|
(return-type "none")
|
||||||
(parameters
|
(parameters
|
||||||
'("GValue*" "value")
|
'("GValue*" "value")
|
||||||
'("int" "numerator")
|
'("gint" "numerator")
|
||||||
'("int" "denominator")
|
'("gint" "denominator")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
(define-function value_get_fraction_numerator
|
(define-function value_get_fraction_numerator
|
||||||
(c-name "gst_value_get_fraction_numerator")
|
(c-name "gst_value_get_fraction_numerator")
|
||||||
(return-type "int")
|
(return-type "gint")
|
||||||
(parameters
|
(parameters
|
||||||
'("const-GValue*" "value")
|
'("const-GValue*" "value")
|
||||||
)
|
)
|
||||||
|
@ -6660,7 +6680,7 @@
|
||||||
|
|
||||||
(define-function value_get_fraction_denominator
|
(define-function value_get_fraction_denominator
|
||||||
(c-name "gst_value_get_fraction_denominator")
|
(c-name "gst_value_get_fraction_denominator")
|
||||||
(return-type "int")
|
(return-type "gint")
|
||||||
(parameters
|
(parameters
|
||||||
'("const-GValue*" "value")
|
'("const-GValue*" "value")
|
||||||
)
|
)
|
||||||
|
@ -6701,10 +6721,10 @@
|
||||||
(return-type "none")
|
(return-type "none")
|
||||||
(parameters
|
(parameters
|
||||||
'("GValue*" "value")
|
'("GValue*" "value")
|
||||||
'("int" "numerator_start")
|
'("gint" "numerator_start")
|
||||||
'("int" "denominator_start")
|
'("gint" "denominator_start")
|
||||||
'("int" "numerator_end")
|
'("gint" "numerator_end")
|
||||||
'("int" "denominator_end")
|
'("gint" "denominator_end")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -6743,7 +6763,7 @@
|
||||||
|
|
||||||
(define-function value_compare
|
(define-function value_compare
|
||||||
(c-name "gst_value_compare")
|
(c-name "gst_value_compare")
|
||||||
(return-type "int")
|
(return-type "gint")
|
||||||
(parameters
|
(parameters
|
||||||
'("const-GValue*" "value1")
|
'("const-GValue*" "value1")
|
||||||
'("const-GValue*" "value2")
|
'("const-GValue*" "value2")
|
||||||
|
|
|
@ -118,3 +118,30 @@ _wrap_gst_query_parse_segment (PyGstMiniObject *self)
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
%%
|
||||||
|
override gst_query_parse_seeking noargs
|
||||||
|
static PyObject *
|
||||||
|
_wrap_gst_query_parse_seeking (PyGstMiniObject *self)
|
||||||
|
{
|
||||||
|
PyObject *ret;
|
||||||
|
GstFormat format;
|
||||||
|
gboolean seekable;
|
||||||
|
gint64 segment_start, segment_end;
|
||||||
|
|
||||||
|
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 (GST_QUERY(self->obj),
|
||||||
|
&format, &seekable,
|
||||||
|
&segment_start, &segment_end);
|
||||||
|
|
||||||
|
ret = PyList_New(4);
|
||||||
|
PyList_SetItem (ret, 0, pyg_enum_from_gtype (GST_TYPE_FORMAT, format));
|
||||||
|
PyList_SetItem (ret, 1, PyBool_FromLong (seekable));
|
||||||
|
PyList_SetItem (ret, 2, PyLong_FromLongLong(segment_start));
|
||||||
|
PyList_SetItem (ret, 3, PyLong_FromLongLong(segment_end));
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue