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:
Andy Wingo 2005-08-19 14:46:05 +00:00
parent 06c0cf5e18
commit 08c7b1a588
2 changed files with 15 additions and 0 deletions

View file

@ -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.

View 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);