Commit 5f247d8c authored by Olivier Aubert's avatar Olivier Aubert

src/control/mediacontrol_internal.h: do not set exception attributes if

no exception was passed
parent fdf18908
......@@ -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; }
......
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