summaryrefslogtreecommitdiff
path: root/pages/switch_channel.ecpp
diff options
context:
space:
mode:
Diffstat (limited to 'pages/switch_channel.ecpp')
-rw-r--r--pages/switch_channel.ecpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/pages/switch_channel.ecpp b/pages/switch_channel.ecpp
index a777fc1..d31bcfc 100644
--- a/pages/switch_channel.ecpp
+++ b/pages/switch_channel.ecpp
@@ -12,11 +12,15 @@ using namespace vdrlive;
</%args>
<%cpp>
reply.setContentType( "application/xml" );
+
+ SwitchChannelTask task( channelid );
+ LiveTaskManager().Execute( task );
</%cpp>
<?xml version="1.0"?>
<service>
<request name="switch_channel">
<param name="channel"><$ *channelid.ToString() $></param>
</request>
-<response><$ LiveTaskManager().Execute( new SwitchChannelTask( channelid ) ) $></response>
+<response><$ task.Result() $></response>
+<error><$ task.Error() $></error>
</service>