[farsight2/master] Make the transmitter param optional in the python bindings

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:24:06 PST 2008


---
 python/pyfarsight.override |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/pyfarsight.override b/python/pyfarsight.override
index ed70f30..11cca4b 100644
--- a/python/pyfarsight.override
+++ b/python/pyfarsight.override
@@ -185,7 +185,7 @@ _wrap_fs_session_new_stream(PyGObject *self, PyObject *args, PyObject *kwargs)
   guint n_parameters = 0;
   GParameter *parameters = NULL;
 
-  if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!is|O!:FsSession.new_stream",
+  if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!i|zO!:FsSession.new_stream",
           kwlist,
           &PyFsParticipant_Type, &participant,
           &direction,
@@ -193,7 +193,7 @@ _wrap_fs_session_new_stream(PyGObject *self, PyObject *args, PyObject *kwargs)
           &PyDict_Type, &st_params))
     return NULL;
 
-  if (st_params)
+  if (transmitter_name && st_params)
   {
     n_parameters = PyDict_Size (st_params);
 
-- 
1.5.6.5




More information about the farsight-commits mailing list