[vlc-devel] commit: mozilla: fix inverted logic (thanks jpd). ( Rémi Duraffort )
git version control
git at videolan.org
Wed Feb 3 16:57:35 CET 2010
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Feb 3 16:51:48 2010 +0100| [32ec9c1e6d9a3453046adec942b4d081d108a040] | committer: Rémi Duraffort
mozilla: fix inverted logic (thanks jpd).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=32ec9c1e6d9a3453046adec942b4d081d108a040
---
projects/mozilla/vlcplugin.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp
index 3cb456e..d438e02 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 )
More information about the vlc-devel
mailing list