From 32ec9c1e6d9a3453046adec942b4d081d108a040 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Wed, 3 Feb 2010 16:51:48 +0100 Subject: [PATCH] mozilla: fix inverted logic (thanks jpd). --- projects/mozilla/vlcplugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) -- 2.39.2