mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Close pip before switching channel.
This commit is contained in:
parent
11293e8dc1
commit
e88403d044
@ -1588,6 +1588,9 @@ static void PipNextAvailableChannel(int direction)
|
|||||||
|
|
||||||
channel = PipChannel;
|
channel = PipChannel;
|
||||||
first = channel;
|
first = channel;
|
||||||
|
|
||||||
|
DelPip(); // disable PIP to free the device
|
||||||
|
|
||||||
while (channel) {
|
while (channel) {
|
||||||
bool ndr;
|
bool ndr;
|
||||||
cDevice *device;
|
cDevice *device;
|
||||||
@ -1601,7 +1604,6 @@ static void PipNextAvailableChannel(int direction)
|
|||||||
&& (device = cDevice::GetDevice(channel, 0, false, true))
|
&& (device = cDevice::GetDevice(channel, 0, false, true))
|
||||||
&& device->ProvidesChannel(channel, 0, &ndr) && !ndr) {
|
&& device->ProvidesChannel(channel, 0, &ndr) && !ndr) {
|
||||||
|
|
||||||
DelPip();
|
|
||||||
NewPip(channel->Number());
|
NewPip(channel->Number());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user