gui/movieplayer.cpp: add support for marked file list to play (file playback) and repeat modes,

original code (C) martii <m4rtii@gmx.de>
This commit is contained in:
[CST] Focus
2014-09-17 20:12:16 +04:00
parent b46ad0c5ae
commit d83d519c86
9 changed files with 171 additions and 74 deletions

View File

@@ -475,7 +475,8 @@ void CInfoViewer::show_current_next(bool new_chan, int epgpos)
void CInfoViewer::showMovieTitle(const int playState, const t_channel_id &Channel_Id, const std::string &Channel,
const std::string &g_file_epg, const std::string &g_file_epg1,
const int duration, const int curr_pos)
const int duration, const int curr_pos,
const int repeat_mode)
{
if (g_settings.volume_pos == CVolumeBar::VOLUMEBAR_POS_BOTTOM_LEFT ||
g_settings.volume_pos == CVolumeBar::VOLUMEBAR_POS_BOTTOM_RIGHT ||
@@ -541,7 +542,16 @@ void CInfoViewer::showMovieTitle(const int playState, const t_channel_id &Channe
const char *playicon = NULL;
switch (playState) {
case CMoviePlayerGui::PLAY:
playicon = NEUTRINO_ICON_PLAY;
switch (repeat_mode) {
case CMoviePlayerGui::REPEAT_ALL:
playicon = NEUTRINO_ICON_PLAY_REPEAT_ALL;
break;
case CMoviePlayerGui::REPEAT_TRACK:
playicon = NEUTRINO_ICON_PLAY_REPEAT_TRACK;
break;
default:
playicon = NEUTRINO_ICON_PLAY;
}
speed = 0;
break;
case CMoviePlayerGui::PAUSE: