[vlc-devel] commit: only print error when interface intialization failed not when it succeeded . (Jean-Paul Saman )

git version control git at videolan.org
Mon Jun 15 14:47:32 CEST 2009


vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Sun Jun 14 19:55:54 2009 +0200| [715d81c9c05db502aad22a201b8e2f4beb400cca] | committer: Derk-Jan Hartman 

only print error when interface intialization failed not when it succeeded.
(cherry picked from commit 503c860af9e3152af19d7123fae37727c82896b7)

Signed-off-by: Derk-Jan Hartman <hartman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=715d81c9c05db502aad22a201b8e2f4beb400cca
---

 src/control/core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/control/core.c b/src/control/core.c
index ececd0e..42947e9 100644
--- a/src/control/core.c
+++ b/src/control/core.c
@@ -187,7 +187,7 @@ void libvlc_release( libvlc_instance_t *p_instance )
 void libvlc_add_intf( libvlc_instance_t *p_i, const char *name,
                       libvlc_exception_t *p_e )
 {
-    if( libvlc_InternalAddIntf( p_i->p_libvlc_int, name ) )
+    if( !libvlc_InternalAddIntf( p_i->p_libvlc_int, name ) )
         RAISEVOID( "Interface initialization failed" );
 }
 




More information about the vlc-devel mailing list