mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 17:16:51 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user