From be7af3d5ad66db57a161b546a766875a02441d08 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 Signed-off-by: Thilo Graf Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/522477b56a5de2ebb0b31ece4884fe586fa072f5 Author: vanhofen Date: 2017-11-03 (Fri, 03 Nov 2017) Origin message was: ------------------ - zapit: don't save webradio-channels as last tv channel Signed-off-by: Thilo Graf --- 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 78bd0f345..cfb2bb5f3 100644 --- a/src/zapit/src/zapit.cpp +++ b/src/zapit/src/zapit.cpp @@ -535,7 +535,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; }