Commit 24b456d8 authored by Rémi Duraffort's avatar Rémi Duraffort

mozilla: fix compilation.

parent 46761435
......@@ -452,8 +452,8 @@ void VlcPlugin::set_player_window()
int VlcPlugin::playlist_add( const char *mrl, libvlc_exception_t *ex )
{
int item = -1;
libvlc_media_t *p_m = libvlc_media_new(libvlc_instance,mrl,ex);
if( libvlc_exception_raised(ex) )
libvlc_media_t *p_m = libvlc_media_new(libvlc_instance,mrl);
if( p_m )
return -1;
libvlc_media_list_lock(libvlc_media_list);
......@@ -470,9 +470,9 @@ int VlcPlugin::playlist_add( const char *mrl, libvlc_exception_t *ex )
int VlcPlugin::playlist_add_extended_untrusted( const char *mrl, const char *name,
int optc, const char **optv, libvlc_exception_t *ex )
{
libvlc_media_t *p_m = libvlc_media_new(libvlc_instance, mrl,ex);
libvlc_media_t *p_m = libvlc_media_new(libvlc_instance, mrl);
int item = -1;
if( libvlc_exception_raised(ex) )
if( p_m )
return -1;
for( int i = 0; i < optc; ++i )
......
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