mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
gui/movieplayer.cpp: allow getInstance() to return background instance
Origin commit data
------------------
Branch: ni/coolstream
Commit: c4197fb5f3
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-10-16 (Fri, 16 Oct 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -85,7 +85,7 @@ cPlayback *CMoviePlayerGui::playback;
|
||||
CMovieBrowser* CMoviePlayerGui::moviebrowser;
|
||||
CBookmarkManager * CMoviePlayerGui::bookmarkmanager;
|
||||
|
||||
CMoviePlayerGui& CMoviePlayerGui::getInstance()
|
||||
CMoviePlayerGui& CMoviePlayerGui::getInstance(bool background)
|
||||
{
|
||||
OpenThreads::ScopedLock<OpenThreads::Mutex> m_lock(bgmutex);
|
||||
if (!instance_mp )
|
||||
@@ -94,7 +94,7 @@ CMoviePlayerGui& CMoviePlayerGui::getInstance()
|
||||
instance_bg = new CMoviePlayerGui();
|
||||
printf("[neutrino CMoviePlayerGui] Instance created...\n");
|
||||
}
|
||||
return *instance_mp;
|
||||
return background ? *instance_bg : *instance_mp;
|
||||
}
|
||||
|
||||
CMoviePlayerGui::CMoviePlayerGui()
|
||||
|
@@ -195,7 +195,7 @@ class CMoviePlayerGui : public CMenuTarget
|
||||
public:
|
||||
~CMoviePlayerGui();
|
||||
|
||||
static CMoviePlayerGui& getInstance();
|
||||
static CMoviePlayerGui& getInstance(bool background = false);
|
||||
|
||||
int exec(CMenuTarget* parent, const std::string & actionKey);
|
||||
bool Playing() { return playing; };
|
||||
|
Reference in New Issue
Block a user