- movieplayer: align some variables names to tango's names

Conflicts:
	src/gui/infoviewer.cpp
	src/gui/movieplayer.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-10-30 01:44:01 +01:00
committed by Thilo Graf
parent 21f6ec5944
commit 671949d8f3
5 changed files with 23 additions and 13 deletions

View File

@@ -164,6 +164,7 @@ void CMoviePlayerGui::Init(void)
stopped = true;
currentVideoSystem = -1;
currentOsdResolution = 0;
is_audio_playing = false;
frameBuffer = CFrameBuffer::getInstance();
@@ -410,13 +411,13 @@ int CMoviePlayerGui::exec(CMenuTarget * parent, const std::string & actionKey)
isYT = true;
}
else if (actionKey == "fileplayback_video") {
is_audio_player = false;
is_audio_playing = false;
if (filebrowser)
filebrowser->Filter = &filefilter_video;
//wakeup_hdd(g_settings.network_nfs_moviedir.c_str());
}
else if (actionKey == "fileplayback_audio") {
is_audio_player = true;
is_audio_playing = true;
if (filebrowser)
filebrowser->Filter = &filefilter_audio;
//wakeup_hdd(g_settings.network_nfs_audioplayerdir.c_str());
@@ -590,7 +591,7 @@ void CMoviePlayerGui::ClearFlags()
isWebChannel = false;
isYT = false;
is_file_player = false;
is_audio_player = false;
is_audio_playing = false;
timeshift = TSHIFT_MODE_OFF;
}
@@ -693,7 +694,7 @@ bool CMoviePlayerGui::SelectFile()
cookie_header.clear();
//reinit Path_local for webif reloadsetup
Path_local = "/";
if (is_audio_player)
if (is_audio_playing)
{
if (!g_settings.network_nfs_audioplayerdir.empty())
Path_local = g_settings.network_nfs_audioplayerdir;
@@ -704,7 +705,7 @@ bool CMoviePlayerGui::SelectFile()
Path_local = g_settings.network_nfs_moviedir;
}
printf("CMoviePlayerGui::SelectFile: isBookmark %d timeshift %d isMovieBrowser %d is_audio_playing %d\n", isBookmark, timeshift, isMovieBrowser, is_audio_player);
printf("CMoviePlayerGui::SelectFile: isBookmark %d timeshift %d isMovieBrowser %d is_audio_playing %d\n", isBookmark, timeshift, isMovieBrowser, is_audio_playing);
#if 0
wakeup_hdd(g_settings.network_nfs_recordingdir.c_str());
#endif
@@ -776,7 +777,7 @@ bool CMoviePlayerGui::SelectFile()
menu_ret = filebrowser->getMenuRet();
enableOsdElements(MUTE);
}
if (!is_audio_player)
if (!is_audio_playing)
g_settings.network_nfs_moviedir = Path_local;
return ret;
@@ -1302,6 +1303,15 @@ bool CMoviePlayerGui::PlayFileStart(void)
showStartingHint = true;
pthread_create(&thrStartHint, NULL, CMoviePlayerGui::ShowStartHint, this);
}
if (filefilter_audio.matchFilter(file_name))
{
frameBuffer->showFrame("mp3.jpg");
is_audio_playing = true;
}
else
is_audio_playing = false;
bool res = playback->Start((char *) file_name.c_str(), vpid, vtype, currentapid, currentac3, duration);
if (thrStartHint) {
@@ -1679,7 +1689,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
CFile *pfile = NULL;
int selected = std::distance( filelist.begin(), filelist_it );
filelist_it = filelist.end();
if (playlist->playlist_manager(filelist, selected, is_audio_player))
if (playlist->playlist_manager(filelist, selected, is_audio_playing))
{
playstate = CMoviePlayerGui::STOPPED;
CFile *sfile = NULL;