fix allocateRAWChannel (we must first give free the cached channel)
[enigma2.git] / lib / dvb / dvb.cpp
index b1e8ad5..ac5c1a5 100644 (file)
@@ -363,6 +363,9 @@ RESULT eDVBResourceManager::allocateRawChannel(eUsePtr<iDVBChannel> &channel, in
 {
        ePtr<eDVBAllocatedFrontend> fe;
 
+       if (m_cached_channel)
+               m_cached_channel=0;
+
        if (allocateFrontendByIndex(fe, frontend_index))
                return errNoFrontend;