fix compile for coolstream hardware (works on HD2)

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0f420744b5
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2017-11-03 (Fri, 03 Nov 2017)

Origin message was:
------------------
- fix compile for coolstream hardware (works on HD2)

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

------------------
This commit was generated by Migit
This commit is contained in:
gixxpunk
2017-11-03 15:58:22 +01:00
parent 27643130a3
commit cb7c02d2ac
3 changed files with 12 additions and 2 deletions

View File

@@ -74,7 +74,9 @@ CScreenShot::CScreenShot(const std::string fname, screenshot_format_t fmt)
yres = 0;
get_video = g_settings.screenshot_mode & 1;
get_osd = g_settings.screenshot_mode & 2;
#if HAVE_GENERIC_HARDWARE || HAVE_ARM_HARDWARE
#if HAVE_COOL_HARDWARE
scale_to_video = g_settings.screenshot_scale;
#elif HAVE_GENERIC_HARDWARE || HAVE_ARM_HARDWARE
scale_to_video = (g_settings.screenshot_mode == 3);
#else
scale_to_video = (g_settings.screenshot_mode == 3) & (g_settings.screenshot_res & 1);
@@ -257,9 +259,15 @@ void CScreenShot::cleanupThread(void *arg)
}
#endif
#if HAVE_COOL_HARDWARE
/* start ::run in new thread to save file in selected format */
bool CScreenShot::Start()
{
#else
/* start ::run in new thread to save file in selected format */
bool CScreenShot::Start(const std::string custom_cmd)
{
#endif
#if HAVE_SPARK_HARDWARE || HAVE_DUCKBOX_HARDWARE
std::string cmd = "/bin/grab ";
if (get_osd && !get_video)