mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
movieplayer: add playlist_manager
NOTE: This is a merge of several patches by TangoCash
for neutrino-mp aligned to neutrino-hd.
We use 'play' key to open playlist_manager.
Origin commit data
------------------
Branch: ni/coolstream
Commit: dfc7a1d304
Author: TangoCash <eric@loxat.de>
Date: 2014-11-26 (Wed, 26 Nov 2014)
Origin message was:
------------------
- movieplayer: add playlist_manager
NOTE: This is a merge of several patches by TangoCash
for neutrino-mp aligned to neutrino-hd.
We use 'play' key to open playlist_manager.
------------------
This commit was generated by Migit
This commit is contained in:
@@ -885,6 +885,22 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
||||
updateLcd();
|
||||
if (timeshift == TSHIFT_MODE_OFF)
|
||||
callInfoViewer();
|
||||
} else if (filelist.size() > 0) {
|
||||
CFileBrowser playlist;
|
||||
CFile *pfile = NULL;
|
||||
pfile = &(*filelist_it);
|
||||
if (playlist.playlist_manager(filelist, std::distance( filelist.begin(), filelist_it )))
|
||||
{
|
||||
playstate = CMoviePlayerGui::STOPPED;
|
||||
CFile *sfile = NULL;
|
||||
for (filelist_it = filelist.begin(); filelist_it != filelist.end(); ++filelist_it)
|
||||
{
|
||||
pfile = &(*filelist_it);
|
||||
sfile = playlist.getSelectedFile();
|
||||
if ( (sfile->getFileName() == pfile->getFileName()) && (sfile->getPath() == pfile->getPath()))
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (msg == (neutrino_msg_t) g_settings.mpkey_pause) {
|
||||
if (playstate == CMoviePlayerGui::PAUSE) {
|
||||
|
Reference in New Issue
Block a user