mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +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>
Origin commit data
------------------
Branch: ni/coolstream
Commit: d83d519c86
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-09-17 (Wed, 17 Sep 2014)
------------------
This commit was generated by Migit
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