From 3dff31a9727b56deab06e67a1cc58ef43bb5b93a Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 25 Oct 2018 21:56:29 +0200 Subject: [PATCH] cec-setup: fix segfaults on non-ARM_HARDWARE Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/d24455f732811527eab676e2a68f742d6a016614 Author: vanhofen Date: 2018-10-25 (Thu, 25 Oct 2018) Origin message was: ------------------ - cec-setup: fix segfaults on non-ARM_HARDWARE ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/cec_setup.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/cec_setup.cpp b/src/gui/cec_setup.cpp index d5becf5e9..55d1ee5a6 100644 --- a/src/gui/cec_setup.cpp +++ b/src/gui/cec_setup.cpp @@ -133,7 +133,9 @@ bool CCECSetup::changeNotify(const neutrino_locale_t OptionName, void * /*data*/ printf("[neutrino CEC Settings] %s set CEC settings...\n", __FUNCTION__); cec1->setActive(g_settings.hdmi_cec_mode != VIDEO_HDMI_CEC_MODE_OFF); cec2->setActive(g_settings.hdmi_cec_mode != VIDEO_HDMI_CEC_MODE_OFF); +#if HAVE_ARM_HARDWARE cec3->setActive(g_settings.hdmi_cec_mode != VIDEO_HDMI_CEC_MODE_OFF); +#endif videoDecoder->SetCECMode((VIDEO_HDMI_CEC_MODE)g_settings.hdmi_cec_mode); } else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_VIDEOMENU_HDMI_CEC_STANDBY))