fix allocateRAWChannel (we must first give free the cached channel)
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 7 Dec 2005 00:20:02 +0000 (00:20 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 7 Dec 2005 00:20:02 +0000 (00:20 +0000)
lib/dvb/dvb.cpp

index b1e8ad5..ac5c1a5 100644 (file)
@@ -363,6 +363,9 @@ RESULT eDVBResourceManager::allocateRawChannel(eUsePtr<iDVBChannel> &channel, in
 {
        ePtr<eDVBAllocatedFrontend> fe;
 
 {
        ePtr<eDVBAllocatedFrontend> fe;
 
+       if (m_cached_channel)
+               m_cached_channel=0;
+
        if (allocateFrontendByIndex(fe, frontend_index))
                return errNoFrontend;
        
        if (allocateFrontendByIndex(fe, frontend_index))
                return errNoFrontend;