]> git.sesse.net Git - vlc/commitdiff
libvlcpp: fix compilation.
authorRémi Duraffort <ivoire@videolan.org>
Mon, 1 Feb 2010 13:11:08 +0000 (14:11 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 2 Feb 2010 08:34:37 +0000 (09:34 +0100)
bindings/libvlcpp/src/libvlc.cpp

index a29fc5b20c8072a25311c0ee723bbee4cdf4283b..c435d1605a00aa86d274fdea6876d58fd73e1799 100644 (file)
  *****************************************************************************/
 
 #include "libvlc.hpp"
-#include "exception.hpp"
 
 using namespace libvlc;
 
 libVLC::libVLC( int i_argc, const char *const *argv )
 {
-    Exception ex;
-    m_instance = libvlc_new( i_argc, argv, &ex.ex);
+    m_instance = libvlc_new( i_argc, argv);
+    if(!m_instance)
+        throw libvlc_errmsg();
 }
 
 libVLC::~libVLC()