From cf8c160f13157991ef3bca3cad6f2285477d5906 Mon Sep 17 00:00:00 2001 From: "David I. Lehn" Date: Wed, 31 Dec 2003 07:16:40 +0000 Subject: [PATCH] Patch from Bug#128736. gstreamer/common.override Original commit message from CVS: Patch from Bug#128736. 2003-12-07 Gustavo J. A. M. Carneiro * gstreamer/common.override (_wrap_gst_element_factory_make_element): Make name argument optional. --- ChangeLog | 6 ++++++ common | 2 +- gst/common.override | 4 ++-- gstreamer/common.override | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index f23a1fd0e7..052412bb3f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-12-07 Gustavo J. A. M. Carneiro + + * gstreamer/common.override + (_wrap_gst_element_factory_make_element): Make name argument + optional. + 2003-10-10 David I. Lehn * configure.ac, gstreamer/Makefile.am, gstreamer/*: Mass change to diff --git a/common b/common index e903f88a73..cd5507ae3d 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit e903f88a7388f0b463204ea1f960a4ace840175b +Subproject commit cd5507ae3df8dc48c07df9e37878846b6b79faa1 diff --git a/gst/common.override b/gst/common.override index 416e1277f3..4453bd902d 100644 --- a/gst/common.override +++ b/gst/common.override @@ -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); diff --git a/gstreamer/common.override b/gstreamer/common.override index 416e1277f3..4453bd902d 100644 --- a/gstreamer/common.override +++ b/gstreamer/common.override @@ -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);