Commit 41998e06 authored by Olivier Aubert's avatar Olivier Aubert

mediacontrol-python/vlcglue.c: check the return value of VLC_Create

parent 432af467
......@@ -168,6 +168,11 @@ static PyObject
{
/* Try to initialize */
i_id = VLC_Create();
if( i_id < 0 )
{
PyErr_SetString( PyExc_StandardError, "Unable to create a VLC instance." );
return NULL;
}
p_object = ( vlc_object_t* )vlc_current_object( i_id );
}
......
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