]> git.sesse.net Git - vlc/commitdiff
src/control/mediacontrol_internal.h: do not set exception attributes if
authorOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Sat, 21 Apr 2007 22:30:23 +0000 (22:30 +0000)
committerOlivier Aubert <olivier.aubert@liris.cnrs.fr>
Sat, 21 Apr 2007 22:30:23 +0000 (22:30 +0000)
no exception was passed

src/control/mediacontrol_internal.h

index 08b759130dcb620639c7b2a10b372dcdd81fb365..ffbc709cb77eaabb8a7c9c630eec2e4404af4365 100644 (file)
@@ -46,8 +46,8 @@ vlc_int64_t mediacontrol_position2microsecond(
     input_thread_t *p_input,
     const mediacontrol_Position *pos );
 
-#define RAISE( c, m )  exception->code = c; \
-                       exception->message = strdup(m);
+#define RAISE( c, m )  if( exception ) { exception->code = c;  \
+                                         exception->message = strdup(m); }
 
 #define RAISE_NULL( c, m ) { RAISE( c, m ); return NULL; }
 #define RAISE_VOID( c, m ) { RAISE( c, m ); return; }