]> git.sesse.net Git - vlc/blobdiff - bindings/python/vlcglue.h
More macro parametrization.
[vlc] / bindings / python / vlcglue.h
index 65da35ea47734747f6878b7423a7cea98505f11d..8c857c687a801dc57d1ef85476eed40c3ff06e11 100644 (file)
@@ -40,7 +40,6 @@ typedef int Py_ssize_t;
 #define PY_SSIZE_T_MIN INT_MIN
 #endif
 
-#define SELF ((MediaControl*)self)
 
 /**********************************************************************
  * Exceptions handling
@@ -138,6 +137,7 @@ staticforward PyTypeObject vlcMedia_Type;
 #define LIBVLC_INSTANCE(self) (((vlcInstance*)self)->p_instance)
 #define LIBVLC_MEDIAPLAYER(self) (((vlcMediaPlayer*)self)->p_mp)
 #define LIBVLC_MEDIA(self) (((vlcMedia*)self)->p_media)
+#define LIBVLC_MC(self) (((MediaControl*)self)->mc)
 
 #define LIBVLC_TRY libvlc_exception_init( &ex );