From: RĂ©mi Duraffort Date: Wed, 3 Feb 2010 15:51:48 +0000 (+0100) Subject: mozilla: fix inverted logic (thanks jpd). X-Git-Tag: 1.1.0-ff~508 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=32ec9c1e6d9a3453046adec942b4d081d108a040;p=vlc mozilla: fix inverted logic (thanks jpd). --- diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp index 3cb456e608..d438e0236a 100644 --- a/projects/mozilla/vlcplugin.cpp +++ b/projects/mozilla/vlcplugin.cpp @@ -453,7 +453,7 @@ 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); - if( p_m ) + if( !p_m ) return -1; libvlc_media_list_lock(libvlc_media_list); @@ -472,7 +472,7 @@ int VlcPlugin::playlist_add_extended_untrusted( const char *mrl, const char *nam { libvlc_media_t *p_m = libvlc_media_new(libvlc_instance, mrl); int item = -1; - if( p_m ) + if( !p_m ) return -1; for( int i = 0; i < optc; ++i )