CMoviePlayerGui: Creating an possibility to block restoreNeutrino()...

...from an external plugin

 - This better play playlists with plugins


Origin commit data
------------------
Commit: 558fea4ec4
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2015-12-08 (Tue, 08 Dec 2015)
This commit is contained in:
Michael Liebmann
2015-12-08 06:15:53 +01:00
parent 6cef9d09fb
commit 2a8a9aa363
2 changed files with 9 additions and 2 deletions

View File

@@ -189,6 +189,7 @@ void CMoviePlayerGui::Init(void)
filelist_it = filelist.end();
keyPressed = CMoviePlayerGui::PLUGIN_PLAYSTATE_NORMAL;
isLuaPlay = false;
blockedFromPlugin = false;
}
void CMoviePlayerGui::cutNeutrino()
@@ -766,7 +767,10 @@ void CMoviePlayerGui::PlayFile(void)
PlayFileStart();
mutex.unlock();
PlayFileLoop();
PlayFileEnd(repeat_mode == REPEAT_OFF);
bool repeat = (repeat_mode == REPEAT_OFF);
if (isLuaPlay)
repeat = (!blockedFromPlugin);
PlayFileEnd(repeat);
}
bool CMoviePlayerGui::PlayFileStart(void)