mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
gst/interfaces.override (_wrap_gst_tuner_list_channels) (_wrap_gst_tuner_list_norms, _wrap_gst_mixer_list_tracks)
Original commit message from CVS: 2005-08-19 Andy Wingo <wingo@pobox.com> * gst/interfaces.override (_wrap_gst_tuner_list_channels) (_wrap_gst_tuner_list_norms, _wrap_gst_mixer_list_tracks) (_wrap_gst_color_balance_list_channels): Catch programming errors without segfaults, as glib would do.
This commit is contained in:
parent
06c0cf5e18
commit
08c7b1a588
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2005-08-19 Andy Wingo <wingo@pobox.com>
|
||||||
|
|
||||||
|
* gst/interfaces.override (_wrap_gst_tuner_list_channels)
|
||||||
|
(_wrap_gst_tuner_list_norms, _wrap_gst_mixer_list_tracks)
|
||||||
|
(_wrap_gst_color_balance_list_channels): Catch programming errors
|
||||||
|
without segfaults, as glib would do.
|
||||||
|
|
||||||
2005-08-18 Andy Wingo <wingo@pobox.com>
|
2005-08-18 Andy Wingo <wingo@pobox.com>
|
||||||
|
|
||||||
* examples/debug-slider.py: New file.
|
* examples/debug-slider.py: New file.
|
||||||
|
|
|
@ -58,6 +58,8 @@ _wrap_gst_tuner_list_channels(PyGObject *self)
|
||||||
const GList *l, *list;
|
const GList *l, *list;
|
||||||
PyObject *py_list;
|
PyObject *py_list;
|
||||||
|
|
||||||
|
g_return_val_if_fail (GST_IS_TUNER (self->obj), PyList_New(0));
|
||||||
|
|
||||||
list = gst_tuner_list_channels(GST_TUNER(self->obj));
|
list = gst_tuner_list_channels(GST_TUNER(self->obj));
|
||||||
|
|
||||||
py_list = PyList_New(0);
|
py_list = PyList_New(0);
|
||||||
|
@ -78,6 +80,8 @@ _wrap_gst_tuner_list_norms(PyGObject *self)
|
||||||
const GList *l, *list;
|
const GList *l, *list;
|
||||||
PyObject *py_list;
|
PyObject *py_list;
|
||||||
|
|
||||||
|
g_return_val_if_fail (GST_IS_TUNER (self->obj), PyList_New(0));
|
||||||
|
|
||||||
list = gst_tuner_list_norms(GST_TUNER(self->obj));
|
list = gst_tuner_list_norms(GST_TUNER(self->obj));
|
||||||
|
|
||||||
py_list = PyList_New(0);
|
py_list = PyList_New(0);
|
||||||
|
@ -98,6 +102,8 @@ _wrap_gst_mixer_list_tracks(PyGObject *self)
|
||||||
const GList *l, *list;
|
const GList *l, *list;
|
||||||
PyObject *py_list;
|
PyObject *py_list;
|
||||||
|
|
||||||
|
g_return_val_if_fail (GST_IS_MIXER (self->obj), PyList_New(0));
|
||||||
|
|
||||||
list = gst_mixer_list_tracks(GST_MIXER(self->obj));
|
list = gst_mixer_list_tracks(GST_MIXER(self->obj));
|
||||||
|
|
||||||
py_list = PyList_New(0);
|
py_list = PyList_New(0);
|
||||||
|
@ -118,6 +124,8 @@ _wrap_gst_color_balance_list_channels(PyGObject *self)
|
||||||
const GList *l, *list;
|
const GList *l, *list;
|
||||||
PyObject *py_list;
|
PyObject *py_list;
|
||||||
|
|
||||||
|
g_return_val_if_fail (GST_IS_COLOR_BALANCE (self->obj), PyList_New(0));
|
||||||
|
|
||||||
list = gst_color_balance_list_channels(GST_COLOR_BALANCE(self->obj));
|
list = gst_color_balance_list_channels(GST_COLOR_BALANCE(self->obj));
|
||||||
|
|
||||||
py_list = PyList_New(0);
|
py_list = PyList_New(0);
|
||||||
|
|
Loading…
Reference in a new issue