From 6e5cf04704bad156221dbbe3fccde71bd8c59b39 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 2 Jan 2024 00:43:08 +0100 Subject: [PATCH] zapit: fix CST build Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/dc51dd36facb0af572785752c3b196de8fbf0d23 Author: vanhofen Date: 2024-01-02 (Tue, 02 Jan 2024) Origin message was: ------------------ - zapit: fix CST build ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/zapit/src/zapit.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/zapit/src/zapit.cpp b/src/zapit/src/zapit.cpp index 14bd54d40..88580bcf7 100644 --- a/src/zapit/src/zapit.cpp +++ b/src/zapit/src/zapit.cpp @@ -691,6 +691,13 @@ bool CZapit::ZapIt(const t_channel_id channel_id, bool forupdate, bool startplay } #if ENABLE_PIP +#if HAVE_CST_HARDWARE +bool CZapit::OpenPip(int, int) +{ + // unused dummy for CST hardware + return true; +} +#else bool CZapit::OpenPip(int pip, int dnum) { if (!g_info.hw_caps->can_pip) @@ -720,6 +727,7 @@ bool CZapit::OpenPip(int pip, int dnum) } return true; } +#endif bool CZapit::StopPip(int pip) { @@ -784,9 +792,11 @@ bool CZapit::StartPip(const t_channel_id channel_id, int pip) if (!g_info.hw_caps->can_pip) return false; +#if !HAVE_CST_HARDWARE && !HAVE_GENERIC_HARDWARE if (CNeutrinoApp::getInstance()->avinput_pip) { StopPip(0); } +#endif CZapitChannel* newchannel; bool transponder_change;