Commit cf8c160f authored by David I. Lehn's avatar David I. Lehn

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.
parent 6032476a
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
......
common @ cd5507ae
Subproject commit e903f88a7388f0b463204ea1f960a4ace840175b
Subproject commit cd5507ae3df8dc48c07df9e37878846b6b79faa1
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment