- framebuffer: revival of showFrame() function to allow ...

... pictures like start.jpg, mp3.jpg etc. from /var/tuxbox/icons
This commit is contained in:
svenhoefer
2015-05-05 12:01:04 +02:00
parent ca5d85986e
commit edc8527379
10 changed files with 43 additions and 36 deletions

View File

@@ -99,7 +99,7 @@ int CUpnpBrowserGui::exec(CMenuTarget* parent, const std::string & /*actionKey*/
/* stop playback, disable playback start */
CNeutrinoApp::getInstance()->stopPlayBack(true);
videoDecoder->ShowPicture(DATADIR "/neutrino/icons/mp3.jpg");
m_frameBuffer->showFrame("mp3.jpg");
// tell neutrino we're in audio mode
CNeutrinoApp::getInstance()->handleMsg(NeutrinoMessages::CHANGEMODE , NeutrinoMessages::mode_audio);
@@ -139,7 +139,7 @@ int CUpnpBrowserGui::exec(CMenuTarget* parent, const std::string & /*actionKey*/
// Start Sectionsd
g_Sectionsd->setPauseScanning(false);
videoDecoder->StopPicture();
m_frameBuffer->stopFrame();
m_frameBuffer->Clear();
CZapit::getInstance()->EnablePlayback(true);
@@ -772,7 +772,7 @@ bool CUpnpBrowserGui::selectItem(std::string id)
{
m_frameBuffer->Clear();
playVideo((*entries)[selected - liststart].title, (*entries)[selected - liststart].resources[preferred].url);
videoDecoder->ShowPicture(DATADIR "/neutrino/icons/mp3.jpg");
m_frameBuffer->showFrame("mp3.jpg");
refresh = true;
}
else if (mime.substr(0,6) == "image/")
@@ -1278,7 +1278,7 @@ void CUpnpBrowserGui::playVideo(std::string name, std::string url)
if (CAudioPlayer::getInstance()->getState() != CBaseDec::STOP)
CAudioPlayer::getInstance()->stop();
videoDecoder->StopPicture();
m_frameBuffer->stopFrame();
CMoviePlayerGui::getInstance().SetFile(name, url);
CMoviePlayerGui::getInstance().exec(NULL, "upnp");
}