Changeset 8d3912c26d9eecbf3d74020d28a0c11a0ba5dc22

Show
Ignore:
Timestamp:
05/03/07 22:03:09 (1 year ago)
Author:
Olivier Aubert <olivier.aubert@liris.cnrs.fr>
git-committer:
Olivier Aubert <olivier.aubert@liris.cnrs.fr> 1178222589 +0000
git-parent:

[a79c62a4d1fe8d5c64e89f4d81016c186fd6bae2]

git-author:
Olivier Aubert <olivier.aubert@liris.cnrs.fr> 1178222589 +0000
Message:

python bindings: use new mediacontrol_exception_create function

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bindings/python/vlcglue.h

    rc1432d5 r8d3912c  
    4747 **********************************************************************/ 
    4848 
    49 #define MC_TRY exception=mediacontrol_exception_init(exception
     49#define MC_TRY exception=mediacontrol_exception_create(
    5050 
    5151#define MC_EXCEPT  \ 
    52   if( exception->code ) { \ 
     52  if( exception && exception->code ) { \ 
    5353    PyObject *py_exc = MediaControl_InternalException; \ 
    5454    switch( exception->code ) { \ 
     
    7272    mediacontrol_exception_free( exception ); \ 
    7373    return NULL; \ 
    74   } else { mediacontrol_exception_free( exception ); } 
     74  } else if( exception ) { mediacontrol_exception_free( exception ); } 
    7575 
    7676PyObject *MediaControl_InternalException;