From e88403d044ea55d91056b3f464f5c49bec8710ab Mon Sep 17 00:00:00 2001 From: Johns Date: Mon, 7 Jan 2013 17:47:05 +0100 Subject: [PATCH] Close pip before switching channel. --- softhddevice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/softhddevice.cpp b/softhddevice.cpp index ed5d828..2f5db16 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -1588,6 +1588,9 @@ static void PipNextAvailableChannel(int direction) channel = PipChannel; first = channel; + + DelPip(); // disable PIP to free the device + while (channel) { bool ndr; cDevice *device; @@ -1601,7 +1604,6 @@ static void PipNextAvailableChannel(int direction) && (device = cDevice::GetDevice(channel, 0, false, true)) && device->ProvidesChannel(channel, 0, &ndr) && !ndr) { - DelPip(); NewPip(channel->Number()); return; }