pyges : Override ges_timeline_parse_launch_effect_new to make it accept None

This commit is contained in:
Mathieu Duponchelle 2011-05-14 04:32:45 +02:00 committed by Thibault Saunier
parent 01e4391d4a
commit 18be79ac57

View file

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