diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-16 18:33:59 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-16 18:33:59 +0000 |
commit | 1cb637c457d0a2948d82b3715d8a56552aae6457 (patch) | |
tree | fb7baff06348d2c8eea5e9dab75b16a934741506 | |
parent | 6fd53f0b97b06f8bb718bef6da0d90df95f64e03 (diff) | |
download | vdr-plugin-live-1cb637c457d0a2948d82b3715d8a56552aae6457.tar.gz vdr-plugin-live-1cb637c457d0a2948d82b3715d8a56552aae6457.tar.bz2 |
- adopted to new task manager interface
-rw-r--r-- | pages/play_recording.ecpp | 4 | ||||
-rw-r--r-- | pages/switch_channel.ecpp | 11 |
2 files changed, 2 insertions, 13 deletions
diff --git a/pages/play_recording.ecpp b/pages/play_recording.ecpp index 8356697..ccb76e1 100644 --- a/pages/play_recording.ecpp +++ b/pages/play_recording.ecpp @@ -14,13 +14,11 @@ using namespace vdrlive; </%args> <%cpp> reply.setContentType( "application/xml" ); - - bool result = LiveTaskManager().ReplayRecording( recordingid ); </%cpp> <?xml version="1.0"?> <service> <request name="switch_channel"> <param name="recording"><$ recordingid $></param> </request> -<response><$ result ? "1" : "0" $></response> +<response><$ LiveTaskManager().Execute( new ReplayRecordingTask( recordingid ) ) $></response> </service> diff --git a/pages/switch_channel.ecpp b/pages/switch_channel.ecpp index 501715e..a777fc1 100644 --- a/pages/switch_channel.ecpp +++ b/pages/switch_channel.ecpp @@ -11,21 +11,12 @@ using namespace vdrlive; tChannelID channelid; </%args> <%cpp> - bool result = false; - reply.setContentType( "application/xml" ); - - ReadLock channelsLock( Channels ); - if ( channelsLock ) { - cChannel* channel = Channels.GetByChannelID( channelid ); - if ( channel != 0 ) - result = LiveTaskManager().SwitchChannel( channel->Number() ); - } </%cpp> <?xml version="1.0"?> <service> <request name="switch_channel"> <param name="channel"><$ *channelid.ToString() $></param> </request> -<response><$ result ? "1" : "0" $></response> +<response><$ LiveTaskManager().Execute( new SwitchChannelTask( channelid ) ) $></response> </service> |