gui/movieplayer.cpp: try to fix starting MB playback on webtv channel:

create another CMoviePlayerGui instance for background playback.
remove define __STDC_CONSTANT_MACROS, should be added to CXXFLAGS
This commit is contained in:
[CST] Focus
2015-10-07 13:41:58 +03:00
parent b34c31e8df
commit 21aeb82d49
2 changed files with 57 additions and 29 deletions

View File

@@ -123,7 +123,7 @@ class CMoviePlayerGui : public CMenuTarget
bool isWebTV;
bool isYT;
bool showStartingHint;
CMovieBrowser* moviebrowser;
static CMovieBrowser* moviebrowser;
MI_MOVIE_INFO * p_movie_info;
MI_MOVIE_INFO movie_info;
P_MI_MOVIE_LIST milist;
@@ -142,16 +142,17 @@ class CMoviePlayerGui : public CMenuTarget
bool autoshot_done;
/* playback from bookmark */
CBookmarkManager * bookmarkmanager;
static CBookmarkManager * bookmarkmanager;
bool isBookmark;
OpenThreads::Mutex mutex;
static OpenThreads::Mutex mutex;
static OpenThreads::Mutex bgmutex;
static OpenThreads::Condition cond;
pthread_t bgThread;
static pthread_t bgThread;
cPlayback *playback;
static cPlayback *playback;
static CMoviePlayerGui* instance_mp;
static CMoviePlayerGui* instance_bg;
void Init(void);
void PlayFile();