[multimedia/kdenlive] /: Add missing Kdenlive and FFmpeg versions for Debug Info
Jean-Baptiste Mardelle <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit f0c85816140bbe573d67a6322489b41b39d48bab by Jean-Baptiste Mardelle, on behalf of Jaimukund Bhan.
Committed on 21/07/2026 at 12:22.
Pushed by mardelle into branch 'master'.
Add missing Kdenlive and FFmpeg versions for Debug Info
`KDENLIVE_FULL_VERSION_STRING` was only configured in `CMakeLists.txt` if a `.git` directory existed. Since Flatpak is built from release source tarballs, it remained empty. This MR adds a fallback check to set it to `KDENLIVE_VERSION`.
In `src/main.cpp`, the FFmpeg component was registered with `KAboutData` using an empty `QString()` for the version. This MR includes `<libavutil/avutil.h>` and fetches the dynamic runtime version of FFmpeg using `av_version_info()`.
BUG: 523012
M +3 -0 CMakeLists.txt
M +6 -2 src/main.cpp
https://invent.kde.org/multimedia/kdenlive/-/commit/f0c85816140bbe573d67a6322489b41b39d48bab
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9cb6f07813..10f8a98819 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -208,6 +208,9 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/.git)
message(STATUS "Kdenlive Git revision could not be determined")
endif()
endif()
+if(NOT KDENLIVE_FULL_VERSION_STRING)
+ set(KDENLIVE_FULL_VERSION_STRING "${KDENLIVE_VERSION}")
+endif()
if(CRASH_AUTO_TEST)
if(BUILD_DESIGNERPLUGIN)
diff --git a/src/main.cpp b/src/main.cpp
index 83df480af5..41e98e9d37 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -21,6 +21,10 @@ SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
#include <mlt++/Mlt.h>
+ extern "C" {
+#include <libavutil/avutil.h>
+ }
+
#include <KAboutData>
#include <KConfigGroup>
#ifdef USE_DRMINGW
@@ -316,8 +320,8 @@ int main(int argc, char *argv[])
aboutData.addComponent(i18n("MLT"), i18n("Open source multimedia framework."), mlt_version_get_string(),
QStringLiteral("https://mltframework.org") /*, KAboutLicense::LGPL_V2_1*/);
- aboutData.addComponent(i18n("FFmpeg"), i18n("A complete, cross-platform solution to record, convert and stream audio and video."), QString(),
- QStringLiteral("https://ffmpeg.org"));
+ aboutData.addComponent(i18n("FFmpeg"), i18n("A complete, cross-platform solution to record, convert and stream audio and video."),
+ QString::fromLocal8Bit(av_version_info()), QStringLiteral("https://ffmpeg.org"));
aboutData.setDesktopFileName(QStringLiteral("org.kde.kdenlive"));