mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- framebuffer: revival of showFrame() function to allow ...
... pictures like start.jpg, mp3.jpg etc. from /var/tuxbox/icons
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user