mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user