summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2012-06-03 23:42:31 (GMT)
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2012-12-26 18:18:44 (GMT)
commitc3ecf9fabb674bc154f5a08cdd62e74e2b5d0e36 (patch)
treea251d4af52c994339720f664aac30a1c142c2216
parent94a0a210a485ce1fc95c47a6bc67c4c16c89a0f9 (diff)
downloadvdr-plugin-live-c3ecf9fabb674bc154f5a08cdd62e74e2b5d0e36.tar.gz
vdr-plugin-live-c3ecf9fabb674bc154f5a08cdd62e74e2b5d0e36.tar.bz2
Compile fix for >=vdr-1.7.28
-rw-r--r--tasks.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tasks.cpp b/tasks.cpp
index 9f20190..2a2b8d5 100644
--- a/tasks.cpp
+++ b/tasks.cpp
@@ -60,9 +60,15 @@ void PlayRecordingTask::Action()
const char *current = NowReplaying();
if (!current || (0 != strcmp(current, recording->FileName()))) {
+#if VDRVERSNUM >= 10728
+ cReplayControl::SetRecording( 0 );
+ cControl::Shutdown();
+ cReplayControl::SetRecording( recording->FileName() );
+#else
cReplayControl::SetRecording( 0, 0 );
cControl::Shutdown();
cReplayControl::SetRecording( recording->FileName(), recording->Title() );
+#endif
cControl::Launch( new cReplayControl );
cControl::Attach();
}
@@ -122,7 +128,11 @@ void StopRecordingTask::Action()
return;
}
+#if VDRVERSNUM >= 10728
+ cReplayControl::SetRecording( 0 );
+#else
cReplayControl::SetRecording( 0, 0 );
+#endif
cControl::Shutdown();
}