gentoo-ebuilds/media-plugins/vdr-radio/files/vdr-radio-1.1.0_cControl.patch
Martin Dummer 4f0de639b9
media-plugins/vdr-radio: fix usage of cControl::Control()
introduce subslot dependency on media-video/vdr

Closes: https://bugs.gentoo.org/963424
Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
Part-of: https://github.com/gentoo/gentoo/pull/43960
Signed-off-by: Sam James <sam@gentoo.org>
2025-10-03 01:42:31 +01:00

13 lines
620 B
Diff

diff '--color=auto' -Naur vdr-plugin-radio-1.1.0.orig/radioaudio.c vdr-plugin-radio-1.1.0/radioaudio.c
--- vdr-plugin-radio-1.1.0.orig/radioaudio.c 2018-02-23 16:33:59.000000000 +0100
+++ vdr-plugin-radio-1.1.0/radioaudio.c 2025-09-27 16:18:29.443910432 +0200
@@ -2392,7 +2392,8 @@
// check end @ replay
if (RT_Replay) {
int rplayCur, rplayTot;
- cControl::Control()->GetIndex(rplayCur, rplayTot, false);
+ cMutexLock MutexLock;
+ cControl::Control(MutexLock)->GetIndex(rplayCur, rplayTot, false);
if (rplayCur >= rplayTot - 1) {
Hide();
return osEnd;