[graphics/kphotoalbum] Viewer: Fix compilation error with incompatible VLC version
Tobias Leupold <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 86148d731206ff858dc6076225ceaa2499089184 by Tobias Leupold.
Committed on 18/08/2026 at 19:00.
Pushed by johanneszarl into branch 'master'.
Fix compilation error with incompatible VLC version
M +1 -1 Viewer/ViewerWidget.cpp
https://invent.kde.org/graphics/kphotoalbum/-/commit/86148d731206ff858dc6076225ceaa2499089184
diff --git a/Viewer/ViewerWidget.cpp b/Viewer/ViewerWidget.cpp
index e2d97bedd..681f8bcc3 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_FOUND
+#if 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...";