- 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 is contained in:
TangoCash
2014-11-26 09:57:17 +01:00
committed by svenhoefer
parent d3e52fa9f6
commit dfc7a1d304
7 changed files with 235 additions and 5 deletions

View File

@@ -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) {