]> git.sesse.net Git - vlc/commitdiff
python: use new function libvlc_errmsg (reported by Xitij Patel <xitij.patel@xitijpat...
authorOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Thu, 3 Sep 2009 08:56:35 +0000 (10:56 +0200)
committerOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Thu, 3 Sep 2009 08:56:35 +0000 (10:56 +0200)
bindings/python/vlcglue.h

index d5f604c4ec2223f2018ca16c24c7b6fd13e72165..521164572935a1a59df17ae3881c100be3b118c0 100644 (file)
@@ -143,7 +143,7 @@ staticforward PyTypeObject vlcMedia_Type;
 
 #define LIBVLC_EXCEPT if( libvlc_exception_raised( &ex ) ) { \
     PyObject *py_exc = vlc_Exception; \
-    PyErr_SetString( py_exc, libvlc_exception_get_message( &ex ) ); \
+    PyErr_SetString( py_exc, libvlc_errmsg() );        \
     return NULL; \
   }