File 51_suspendoutput-vdr27.diff of Package vdr-plugin-suspendoutput

Index: b/suspendoutput.c
===================================================================
--- a/suspendoutput.c
+++ b/suspendoutput.c
@@ -325,8 +325,9 @@ void cPluginSuspendoutput::CheckInactivi
      (!cDummyPlayerControl::IsOpen()) ) {
     bool Play, Forward;
     int Speed;
-    if(cControl::Control() &&
-       cControl::Control()->GetReplayMode(Play, Forward, Speed) &&
+    cMutexLock ControlMutexLock;
+    if(cControl::Control(ControlMutexLock) &&
+       cControl::Control(ControlMutexLock)->GetReplayMode(Play, Forward, Speed) &&
        Play)
       Activity();
   }
openSUSE Build Service is sponsored by