From 18be79ac5799ee2120d41da0214b7f599f9bb8f1 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Sat, 14 May 2011 04:32:45 +0200 Subject: [PATCH] pyges : Override ges_timeline_parse_launch_effect_new to make it accept None --- bindings/python/ges.override | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/bindings/python/ges.override b/bindings/python/ges.override index 624689e010..ce26c9c927 100644 --- a/bindings/python/ges.override +++ b/bindings/python/ges.override @@ -69,6 +69,26 @@ _wrap_ges_timeline_get_tracks(PyGObject *self) return py_list; } +%% +override ges_timeline_parse_launch_effect_new kwargs +static int +_wrap_ges_timeline_parse_launch_effect_new(PyGObject *self, PyObject *args, PyObject *kwargs) +{ + static char *kwlist[] = { "video_bin_description", "audio_bin_description", NULL }; + char *video_bin_description, *audio_bin_description = NULL; + + if (!PyArg_ParseTupleAndKeywords(args, kwargs,"zz:GES.TimelineParseLaunchEffect.__init__", kwlist, &video_bin_description, &audio_bin_description)) + return -1; + self->obj = (GObject *)ges_timeline_parse_launch_effect_new(video_bin_description, audio_bin_description); + + if (!self->obj) { + PyErr_SetString(PyExc_RuntimeError, "could not create GESTimelineParseLaunchEffect object"); + return -1; + } + pygobject_register_wrapper((PyObject *)self); + return 0; +} + %% override ges_timeline_get_layers noargs static PyObject *