if( libvlc_exception_raised( &ex ) )
{
free( retval );
- RAISE( mediacontrol_InternalException,
- libvlc_exception_get_message( &ex ) );
+ RAISE( mediacontrol_InternalException, libvlc_errmsg( ) );
libvlc_exception_clear( &ex );
return NULL;
}
}
else
{
- enum libvlc_state_t state;
+ libvlc_state_t state;
state = libvlc_media_player_get_state( self->p_media_player, &ex );
if( libvlc_exception_raised( &ex ) )
{
free( retval );
- RAISE( mediacontrol_InternalException,
- libvlc_exception_get_message( &ex ) );
+ RAISE( mediacontrol_InternalException, libvlc_errmsg() );
libvlc_exception_clear( &ex );
return NULL;
}