freebsd-ports/www/vdr-plugin-live/files/patch-tasks.cpp
Juergen Lock 06a1a754bf - Update multimedia/vdr and multimedia/vdr-plugins to 1.7.28 .
- Update xineliboutput XKeySym.Pause key in example remote.conf.
  ("space" instead of "Space")
- Add multimedia/vdr-plugin-extrecmenu 1.2.2 to vdr-plugins metaport.
- Update multimedia/vdr-plugin-skinenigmang to 0.1.2s20120606 git snapshot.
- Update www/vdr-plugin-live to 0.2.0s20120325 git snapshot.
- Bump PORTREVISION for all other plugins and add api fixes where necessary.
- Add HISTORY to PORTDOCS for most plugins. (those that have it)
- Remove shlib major versions from LIB_DEPENDS to pet portlint.
2012-06-19 18:42:12 +00:00

30 lines
783 B
C++

--- 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 APIVERSNUM < 10728
cReplayControl::SetRecording( 0, 0 );
cControl::Shutdown();
cReplayControl::SetRecording( recording->FileName(), recording->Title() );
+#else
+ cReplayControl::SetRecording( 0 );
+ cControl::Shutdown();
+ cReplayControl::SetRecording( recording->FileName() );
+#endif
cControl::Launch( new cReplayControl );
cControl::Attach();
}
@@ -122,7 +128,11 @@ void StopRecordingTask::Action()
return;
}
+#if APIVERSNUM < 10728
cReplayControl::SetRecording( 0, 0 );
+#else
+ cReplayControl::SetRecording( 0 );
+#endif
cControl::Shutdown();
}