mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
pyges : Override ges_timeline_parse_launch_effect_new to make it accept None
This commit is contained in:
parent
01e4391d4a
commit
18be79ac57
1 changed files with 20 additions and 0 deletions
|
@ -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 *
|
||||
|
|
Loading…
Reference in a new issue