[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [phonon-vlc] src/utils: Better debug message when libVLC is failing
From:       Jean-Baptiste Kempf <jb () videolan ! org>
Date:       2013-05-26 9:38:49
Message-ID: 20130526093849.8056EA605B () git ! kde ! org
[Download RAW message or body]

Git commit 3835b4fa7c2d8ab99f5457dd3fc510e7b320f625 by Jean-Baptiste Kempf, on behalf of Rafaël Carré.
Committed on 26/05/2013 at 11:37.
Pushed by kempf into branch 'master'.

Better debug message when libVLC is failing

libvlc_errmsg() returns uninitialized data when libvlc_new was not
called, and nothing when it was called but failed

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>

M  +1    -1    src/utils/libvlc.cpp

http://commits.kde.org/phonon-vlc/3835b4fa7c2d8ab99f5457dd3fc510e7b320f625

diff --git a/src/utils/libvlc.cpp b/src/utils/libvlc.cpp
index 83e5b04..d0fc4e3 100644
--- a/src/utils/libvlc.cpp
+++ b/src/utils/libvlc.cpp
@@ -133,7 +133,7 @@ bool LibVLC::init()
         // Create and initialize a libvlc instance (it should be done only once)
         self->m_vlcInstance = libvlc_new(vlcArgs.size(), vlcArgs.constData());
         if (!self->m_vlcInstance) {
-            fatal() << "libVLC:" << LibVLC::errorMessage();
+            fatal() << "libVLC: could not initialize";
             return false;
         }
         return true;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic