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)
This commit is contained in:
Frank Schmirler
2013-11-01 15:33:19 +01:00
parent 458a21a62a
commit 1d4a7e06b4
7 changed files with 39 additions and 19 deletions

View File

@@ -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);