mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
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:
parent
6032476a06
commit
cf8c160f13
4 changed files with 11 additions and 5 deletions
|
@ -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>
|
2003-10-10 David I. Lehn <dlehn@users.sourceforge.net>
|
||||||
|
|
||||||
* configure.ac, gstreamer/Makefile.am, gstreamer/*: Mass change to
|
* configure.ac, gstreamer/Makefile.am, gstreamer/*: Mass change to
|
||||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
||||||
Subproject commit e903f88a7388f0b463204ea1f960a4ace840175b
|
Subproject commit cd5507ae3df8dc48c07df9e37878846b6b79faa1
|
|
@ -503,9 +503,9 @@ static int
|
||||||
_wrap_gst_element_factory_make_element(PyGObject *self, PyObject *args, PyObject *kwargs)
|
_wrap_gst_element_factory_make_element(PyGObject *self, PyObject *args, PyObject *kwargs)
|
||||||
{
|
{
|
||||||
static char *kwlist[] = { "factoryname", "name", NULL };
|
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;
|
return -1;
|
||||||
self->obj = (GObject *)gst_element_factory_make(factoryname, name);
|
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)
|
_wrap_gst_element_factory_make_element(PyGObject *self, PyObject *args, PyObject *kwargs)
|
||||||
{
|
{
|
||||||
static char *kwlist[] = { "factoryname", "name", NULL };
|
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;
|
return -1;
|
||||||
self->obj = (GObject *)gst_element_factory_make(factoryname, name);
|
self->obj = (GObject *)gst_element_factory_make(factoryname, name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue