mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- movieplayer: fix screenshot function
Signed-off-by: Thilo Graf <dbt@novatux.de>
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