summaryrefslogtreecommitdiff
path: root/server/connectionVTP.c
diff options
context:
space:
mode:
authorFrank Schmirler <vdr@schmirler.de>2013-11-01 15:33:19 +0100
committerFrank Schmirler <vdr@schmirler.de>2013-11-01 15:33:19 +0100
commit1d4a7e06b4e5cc5a1f115d9d361c2c7b60699ff9 (patch)
tree967c4816a6c04429c682310857a3bee6fa5391ae /server/connectionVTP.c
parent458a21a62ad445ce79a55a8bb03b66c2ba280747 (diff)
downloadvdr-plugin-streamdev-1d4a7e06b4e5cc5a1f115d9d361c2c7b60699ff9.tar.gz
vdr-plugin-streamdev-1d4a7e06b4e5cc5a1f115d9d361c2c7b60699ff9.tar.bz2
Set device occupied when streamdev switches away LiveTV on the server, to
reduce the risk that the VDR main loop immediately switches back, resulting in a black screen on the client (reported by hummel99)
Diffstat (limited to 'server/connectionVTP.c')
-rw-r--r--server/connectionVTP.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/server/connectionVTP.c b/server/connectionVTP.c
index b3be57e..087d02d 100644
--- a/server/connectionVTP.c
+++ b/server/connectionVTP.c
@@ -1118,11 +1118,8 @@ bool cConnectionVTP::CmdTUNE(char *Opts)
if (!ProvidesChannel(chan, prio))
return Respond(560, "Channel not available (ProvidesChannel)");
}
- if ((dev = GetDevice(chan, prio)) == NULL)
- return Respond(560, "Channel not available (GetDevice)");
-
- if (!dev->SwitchChannel(chan, false))
- return Respond(560, "Channel not available (SwitchChannel)");
+ if ((dev = SwitchDevice(chan, prio)) == NULL)
+ return Respond(560, "Channel not available (SwitchDevice)");
delete m_LiveStreamer;
m_LiveStreamer = new cStreamdevLiveStreamer(prio, this);