Commit 8175e8ae authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Adding a libvlc initialization check.

parent cbd386f6
......@@ -42,6 +42,8 @@ Instance::Instance( QObject* parent /*= NULL*/ ) : QObject( parent )
int argc = sizeof( argv ) / sizeof( *argv );
m_internalPtr = libvlc_new( argc, argv );
Q_ASSERT_X( m_internalPtr != NULL, "LibVLCpp::Instance::Instance()",
"Can't launch VLMC without a valid LibVLC instance. Please check your VLC installation" );
}
Instance::~Instance()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment