From ad5ca58cf97d7736d2fa537cb0596140ee7656d6 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 20 Jan 2020 21:33:46 +0100 Subject: [PATCH] fix coolstream build Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/ad5bb6d091f40d186f95e1fea5485a878df6734b Author: vanhofen Date: 2020-01-20 (Mon, 20 Jan 2020) Origin message was: ------------------ - fix coolstream build ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/cam_menu.cpp | 4 ++++ src/zapit/src/zapit.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/gui/cam_menu.cpp b/src/gui/cam_menu.cpp index 0860d75b2..ab0319778 100644 --- a/src/gui/cam_menu.cpp +++ b/src/gui/cam_menu.cpp @@ -634,7 +634,11 @@ bool CCAMMenuHandler::changeNotify(const neutrino_locale_t OptionName, void * Da if (ARE_LOCALES_EQUAL(OptionName, LOCALE_CI_CLOCK)) { for (unsigned int i = 0; i < ca->GetNumberCISlots(); i++) { printf("CCAMMenuHandler::changeNotify: ci_clock[%d] %d\n", i, g_settings.ci_clock[i]); +#if HAVE_LIBSTB_HAL ca->SetTSClock(g_settings.ci_clock[i] * 1000000, i); +#else + ca->SetTSClock(g_settings.ci_clock[i] * 1000000); +#endif } return true; } diff --git a/src/zapit/src/zapit.cpp b/src/zapit/src/zapit.cpp index e6ee4dfe5..53d2a3135 100644 --- a/src/zapit/src/zapit.cpp +++ b/src/zapit/src/zapit.cpp @@ -2595,7 +2595,11 @@ bool CZapit::Start(Z_start_arg *ZapStart_arg) // set ci clock to ZapStart_arg->ci_clock for (unsigned int i = 0; i < ca->GetNumberCISlots(); i++) { +#if HAVE_LIBSTB_HAL ca->SetTSClock(ZapStart_arg->ci_clock[i] * 1000000, i); +#else + ca->SetTSClock(ZapStart_arg->ci_clock[i] * 1000000); +#endif } #if BOXMODEL_VUPLUS