From 42c61b319ef35e4dd5c2ba97b541ca8e4fc8be68 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 22 Apr 2014 18:59:59 +0200 Subject: [PATCH] make auto ScreenShot with short video --- src/gui/movieplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 78dd45a0b..346b75188 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -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);