From f031dfa928dfe83e1b8e5f7b12e4ba99553313e0 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 3 Nov 2017 09:36:20 +0100 Subject: [PATCH] zapit: don't save webradio-channels as last tv channel Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/49815052f7eb6717f94096e630b18fa0959f1cb0 Author: vanhofen Date: 2017-11-03 (Fri, 03 Nov 2017) Origin message was: ------------------ - zapit: don't save webradio-channels as last tv channel --- src/zapit/src/zapit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zapit/src/zapit.cpp b/src/zapit/src/zapit.cpp index 21f54daa6..d7e9823f1 100644 --- a/src/zapit/src/zapit.cpp +++ b/src/zapit/src/zapit.cpp @@ -534,7 +534,8 @@ bool CZapit::ZapIt(const t_channel_id channel_id, bool forupdate, bool startplay lock_channel_id = live_channel_id; current_channel = newchannel; - lastChannelTV = channel_id; + if (newchannel->getServiceType() == ST_DIGITAL_TELEVISION_SERVICE) + lastChannelTV = channel_id; SendEvent(CZapitClient::EVT_WEBTV_ZAP_COMPLETE, &live_channel_id, sizeof(t_channel_id)); return true; }