gui/movieplayer.cpp: try to fix bouquet/channel locking for webtv

This commit is contained in:
[CST] Focus
2015-11-03 18:47:55 +03:00
parent 14dbe516d3
commit ebb2d74d9f

View File

@@ -695,8 +695,13 @@ bool CMoviePlayerGui::PlayBackgroundStart(const std::string &file, const std::st
zp = NULL; zp = NULL;
if (!unlocked) if (!unlocked)
return false; return false;
} else {
CZapitChannel * channel = CServiceManager::getInstance()->FindChannel(chan);
if (channel && channel->Locked() != g_settings.parentallock_defaultlocked && !CNeutrinoApp::getInstance()->channelList->checkLockStatus(0x100))
return false;
} }
} }
OpenThreads::ScopedLock<OpenThreads::Mutex> m_lock(mutex); OpenThreads::ScopedLock<OpenThreads::Mutex> m_lock(mutex);
instance_bg->Cleanup(); instance_bg->Cleanup();