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