Close pip before switching channel.

This commit is contained in:
Johns 2013-01-07 17:47:05 +01:00
parent 11293e8dc1
commit e88403d044

View File

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