summaryrefslogtreecommitdiffstats
path: root/src/VLCInput.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VLCInput.cpp')
-rw-r--r--src/VLCInput.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/VLCInput.cpp b/src/VLCInput.cpp
index 36c77fa..5912509 100644
--- a/src/VLCInput.cpp
+++ b/src/VLCInput.cpp
@@ -227,6 +227,10 @@ void VLCInput::prepare()
// Launch VLC
m_vlc = libvlc_new(arg_ix, vlc_args);
+ if (m_vlc == nullptr) {
+ throw runtime_error("VLC initialisation failed");
+ }
+
libvlc_set_exit_handler(m_vlc, handleVLCExit, this);
// Load the media