[graphics/kphotoalbum] Viewer: Fix compilation without VLC

Johannes Zarl-Zierl <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit c1850c56ad5af5fb225b5d81d88621e1e1f590bf by Johannes Zarl-Zierl.
Committed on 18/08/2026 at 22:11.
Pushed by johanneszarl into branch 'master'.

Fix compilation without VLC

M  +1    -1    Viewer/ViewerWidget.cpp

https://invent.kde.org/graphics/kphotoalbum/-/commit/c1850c56ad5af5fb225b5d81d88621e1e1f590bf

diff --git a/Viewer/ViewerWidget.cpp b/Viewer/ViewerWidget.cpp
index 681f8bcc3..d5cf15cb2 100644
--- a/Viewer/ViewerWidget.cpp
+++ b/Viewer/ViewerWidget.cpp
@@ -1450,7 +1450,7 @@ static VideoDisplay *instantiateVideoDisplay(QWidget *parent, KPABase::CrashSent
     case Settings::VideoBackend::QtMultimedia:
         return new QtMultimediaDisplay(parent);
     case Settings::VideoBackend::VLC:
-#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
+#if LIBVLC_FOUND && LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
         return new VLCDisplay(parent);
 #else
         qCWarning(ViewerLog) << "Video backend VLC not available. Selecting first available backend...";
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.