movieplayer: fix screenshot function

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Commit: cf190855c7
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-08 (Wed, 08 Nov 2017)

Origin message was:
------------------
- movieplayer: fix screenshot function

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
vanhofen
2017-11-08 11:00:48 +01:00
committed by Thilo Graf
parent 778535c25a
commit ecd2e784b8

View File

@@ -3441,6 +3441,9 @@ void CMoviePlayerGui::makeScreenShot(bool autoshot, bool forcover)
if (autoshot && (autoshot_done || !g_settings.auto_cover))
return;
#ifndef SCREENSHOT
(void)forcover; // avoid compiler warning
#else
bool cover = autoshot || g_settings.screenshot_cover || forcover;
char ending[(sizeof(int)*2) + 6] = ".jpg";
if (!cover)
@@ -3490,9 +3493,6 @@ void CMoviePlayerGui::makeScreenShot(bool autoshot, bool forcover)
sc->SetSize(w, h);
}
}
#if HAVE_SPARK_HARDWARE
sc->Start("-r 320 -j 75");
#else
sc->Start();
#endif
if (autoshot)