summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2024-06-20 21:23:45 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2024-06-20 22:18:05 +0200
commitf4c730e054052f2572f6d6bb5f2790f3368b59f7 (patch)
tree913cf9e800322b8273578abcc88dd773522d0839 /kde-apps/kdenlive
parentkde-frameworks/ksvg: drop 6.3.0 (diff)
downloadgentoo-f4c730e054052f2572f6d6bb5f2790f3368b59f7.tar.gz
gentoo-f4c730e054052f2572f6d6bb5f2790f3368b59f7.tar.bz2
gentoo-f4c730e054052f2572f6d6bb5f2790f3368b59f7.zip
kde-apps/kdenlive: Fix timeline duration
See also: https://mail.kde.org/pipermail/distributions/2024-June/001510.html KDE-bug: https://bugs.kde.org/show_bug.cgi?id=488689 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/kdenlive')
-rw-r--r--kde-apps/kdenlive/files/kdenlive-24.05.1-timeline-freeze.patch29
-rw-r--r--kde-apps/kdenlive/kdenlive-24.05.1-r1.ebuild77
2 files changed, 106 insertions, 0 deletions
diff --git a/kde-apps/kdenlive/files/kdenlive-24.05.1-timeline-freeze.patch b/kde-apps/kdenlive/files/kdenlive-24.05.1-timeline-freeze.patch
new file mode 100644
index 000000000000..fd896dd19dd9
--- /dev/null
+++ b/kde-apps/kdenlive/files/kdenlive-24.05.1-timeline-freeze.patch
@@ -0,0 +1,29 @@
+From 8be0e826471332bb739344ebe1859298c46e9e0f Mon Sep 17 00:00:00 2001
+From: Jean-Baptiste Mardelle <jb@kdenlive.org>
+Date: Tue, 18 Jun 2024 10:50:24 +0200
+Subject: [PATCH] Fix timeline duration not correctly updated, resulting in
+ audio/video freeze in timeline after 5 min Related to #1885
+
+---
+ src/timeline2/model/timelinemodel.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/timeline2/model/timelinemodel.cpp b/src/timeline2/model/timelinemodel.cpp
+index 0bb8cb89ae..342324c77f 100644
+--- a/src/timeline2/model/timelinemodel.cpp
++++ b/src/timeline2/model/timelinemodel.cpp
+@@ -5111,9 +5111,9 @@ void TimelineModel::updateDuration()
+ }
+ if (duration != current) {
+ // update black track length
+- m_blackClip->block();
++ m_blackClip->lock();
+ m_blackClip->set("out", duration + TimelineModel::seekDuration);
+- m_blackClip->unblock();
++ m_blackClip->unlock();
+ Q_EMIT durationUpdated(m_uuid);
+ if (m_masterStack) {
+ Q_EMIT m_masterStack->dataChanged(QModelIndex(), QModelIndex(), {});
+--
+GitLab
+
diff --git a/kde-apps/kdenlive/kdenlive-24.05.1-r1.ebuild b/kde-apps/kdenlive/kdenlive-24.05.1-r1.ebuild
new file mode 100644
index 000000000000..87265362a737
--- /dev/null
+++ b/kde-apps/kdenlive/kdenlive-24.05.1-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_DESIGNERPLUGIN="true"
+ECM_HANDBOOK="optional"
+ECM_QTHELP="true"
+ECM_TEST="true"
+KFMIN=6.3.0
+QTMIN=6.6.2
+inherit ecm gear.kde.org optfeature
+
+DESCRIPTION="Non-linear video editing suite by KDE"
+HOMEPAGE="https://kdenlive.org/en/"
+
+LICENSE="GPL-3"
+SLOT="6"
+KEYWORDS="~amd64"
+IUSE="gles2-only semantic-desktop v4l"
+
+RESTRICT="test" # segfaults, bug 684132
+
+DEPEND="
+ >=dev-qt/qtbase-${QTMIN}:6[concurrent,dbus,gles2-only=,gui,network,widgets,xml]
+ >=dev-qt/qtdeclarative-${QTMIN}:6[widgets]
+ >=dev-qt/qtmultimedia-${QTMIN}:6
+ >=dev-qt/qtnetworkauth-${QTMIN}:6
+ >=dev-qt/qtsvg-${QTMIN}:6
+ >=kde-frameworks/karchive-${KFMIN}:6
+ >=kde-frameworks/kbookmarks-${KFMIN}:6
+ >=kde-frameworks/kcodecs-${KFMIN}:6
+ >=kde-frameworks/kcompletion-${KFMIN}:6
+ >=kde-frameworks/kconfig-${KFMIN}:6
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:6
+ >=kde-frameworks/kcoreaddons-${KFMIN}:6
+ >=kde-frameworks/kcrash-${KFMIN}:6
+ >=kde-frameworks/kdbusaddons-${KFMIN}:6
+ >=kde-frameworks/kfilemetadata-${KFMIN}:6
+ >=kde-frameworks/kguiaddons-${KFMIN}:6
+ >=kde-frameworks/ki18n-${KFMIN}:6
+ >=kde-frameworks/kiconthemes-${KFMIN}:6
+ >=kde-frameworks/kio-${KFMIN}:6
+ >=kde-frameworks/kitemviews-${KFMIN}:6
+ >=kde-frameworks/kjobwidgets-${KFMIN}:6
+ >=kde-frameworks/knewstuff-${KFMIN}:6
+ >=kde-frameworks/knotifications-${KFMIN}:6
+ >=kde-frameworks/knotifyconfig-${KFMIN}:6
+ >=kde-frameworks/kservice-${KFMIN}:6
+ >=kde-frameworks/ktextwidgets-${KFMIN}:6
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:6
+ >=kde-frameworks/kxmlgui-${KFMIN}:6
+ >=kde-frameworks/purpose-${KFMIN}:6
+ >=kde-frameworks/solid-${KFMIN}:6
+ >=media-libs/mlt-7.22.0-r1[ffmpeg,frei0r,qt6,sdl,xml]
+ v4l? ( media-libs/libv4l )
+"
+RDEPEND="${DEPEND}
+ >=kde-frameworks/qqc2-desktop-style-${KFMIN}:6
+ media-video/ffmpeg[encode,libass,sdl,X]
+ media-video/mediainfo
+"
+BDEPEND="sys-devel/gettext"
+
+PATCHES=( "${FILESDIR}/${P}-timeline-freeze.patch" ) # KDE-bug 488689
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake_use_find_package v4l LibV4L2)
+ )
+ ecm_src_configure
+}
+
+pkg_postinst() {
+ ecm_pkg_postinst
+ optfeature "VP8 and VP9 codec support" "media-video/ffmpeg[vpx]"
+}