mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
movieplayer: fix screenshot function
Signed-off-by: Thilo Graf <dbt@novatux.de>
Origin commit data
------------------
Branch: ni/coolstream
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 was generated by Migit
This commit is contained in:
@@ -3441,6 +3441,9 @@ void CMoviePlayerGui::makeScreenShot(bool autoshot, bool forcover)
|
|||||||
if (autoshot && (autoshot_done || !g_settings.auto_cover))
|
if (autoshot && (autoshot_done || !g_settings.auto_cover))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#ifndef SCREENSHOT
|
||||||
|
(void)forcover; // avoid compiler warning
|
||||||
|
#else
|
||||||
bool cover = autoshot || g_settings.screenshot_cover || forcover;
|
bool cover = autoshot || g_settings.screenshot_cover || forcover;
|
||||||
char ending[(sizeof(int)*2) + 6] = ".jpg";
|
char ending[(sizeof(int)*2) + 6] = ".jpg";
|
||||||
if (!cover)
|
if (!cover)
|
||||||
@@ -3490,9 +3493,6 @@ void CMoviePlayerGui::makeScreenShot(bool autoshot, bool forcover)
|
|||||||
sc->SetSize(w, h);
|
sc->SetSize(w, h);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if HAVE_SPARK_HARDWARE
|
|
||||||
sc->Start("-r 320 -j 75");
|
|
||||||
#else
|
|
||||||
sc->Start();
|
sc->Start();
|
||||||
#endif
|
#endif
|
||||||
if (autoshot)
|
if (autoshot)
|
||||||
|
Reference in New Issue
Block a user