Patch from Bug#128736. gstreamer/common.override

Original commit message from CVS:
Patch from Bug#128736.

2003-12-07  Gustavo J. A. M. Carneiro  <gustavo@users.sourceforge.net>

* gstreamer/common.override
(_wrap_gst_element_factory_make_element): Make name argument
optional.
This commit is contained in:
David I. Lehn 2003-12-31 07:16:40 +00:00
parent 6032476a06
commit cf8c160f13
4 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2003-12-07 Gustavo J. A. M. Carneiro <gustavo@users.sourceforge.net>
* gstreamer/common.override
(_wrap_gst_element_factory_make_element): Make name argument
optional.
2003-10-10 David I. Lehn <dlehn@users.sourceforge.net>
* configure.ac, gstreamer/Makefile.am, gstreamer/*: Mass change to

2
common

@ -1 +1 @@
Subproject commit e903f88a7388f0b463204ea1f960a4ace840175b
Subproject commit cd5507ae3df8dc48c07df9e37878846b6b79faa1

View file

@ -503,9 +503,9 @@ static int
_wrap_gst_element_factory_make_element(PyGObject *self, PyObject *args, PyObject *kwargs)
{
static char *kwlist[] = { "factoryname", "name", NULL };
char *factoryname, *name;
char *factoryname, *name = NULL;
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ss:GstElement.__init__", kwlist, &factoryname, &name))
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|s:GstElement.__init__", kwlist, &factoryname, &name))
return -1;
self->obj = (GObject *)gst_element_factory_make(factoryname, name);

View file

@ -503,9 +503,9 @@ static int
_wrap_gst_element_factory_make_element(PyGObject *self, PyObject *args, PyObject *kwargs)
{
static char *kwlist[] = { "factoryname", "name", NULL };
char *factoryname, *name;
char *factoryname, *name = NULL;
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "ss:GstElement.__init__", kwlist, &factoryname, &name))
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|s:GstElement.__init__", kwlist, &factoryname, &name))
return -1;
self->obj = (GObject *)gst_element_factory_make(factoryname, name);