Commit 3d26787a authored by Olivier Aubert's avatar Olivier Aubert

python/vlcglue.c : Clear the exception when vlc.MediaControl is instanciated with no parameter.

parent beca754e
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vlcglue.c: VLC Module * vlcglue.c: VLC Module
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2004 the VideoLAN team * Copyright (C) 1998-2004 the VideoLAN team
* $Id: vlc.c 12667 2005-09-25 10:19:26Z zorglub $ * $Id$
* *
* Authors: Olivier Aubert <oaubert at bat710.univ-lyon1.fr> * Authors: Olivier Aubert <oaubert at bat710.univ-lyon1.fr>
* Clment Stenac <zorglub@videolan.org> * Clment Stenac <zorglub@videolan.org>
...@@ -777,6 +777,12 @@ static PyObject *MediaControl_new(PyTypeObject *type, PyObject *args, PyObject * ...@@ -777,6 +777,12 @@ static PyObject *MediaControl_new(PyTypeObject *type, PyObject *args, PyObject *
ppsz_args[i_size] = NULL; ppsz_args[i_size] = NULL;
Py_DECREF(py_list); Py_DECREF(py_list);
} }
else
{
/* No arguments were given. Clear the exception raised
* by PyArg_ParseTuple. */
PyErr_Clear();
}
Py_BEGIN_ALLOW_THREADS Py_BEGIN_ALLOW_THREADS
MC_TRY; MC_TRY;
......
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