make auto ScreenShot with short video

Origin commit data
------------------
Branch: ni/coolstream
Commit: 42c61b319e
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2014-04-22 (Tue, 22 Apr 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2014-04-22 18:59:59 +02:00
parent 2dd049be47
commit 9bd38ec200

View File

@@ -792,7 +792,7 @@ void CMoviePlayerGui::PlayFile(void)
playstate = CMoviePlayerGui::STOPPED;
g_RCInput->postMsg(msg, data);
} else if (msg == CRCInput::RC_timeout || msg == NeutrinoMessages::EVT_TIMER) {
if (playstate == CMoviePlayerGui::PLAY && position >= 300000)
if (playstate == CMoviePlayerGui::PLAY && (position >= 300000 || (duration<300000 && (position>(duration /2)))))
makeScreenShot(true);
} else if (msg == CRCInput::RC_favorites) {
makeScreenShot(false, true);