From 481d7e07785a79821845a27ff6af30214d19b969 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 21 Feb 2012 18:57:41 +0400 Subject: [PATCH] frontend.cpp: test to fix transponder change detect for nvod --- src/zapit/src/frontend.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/zapit/src/frontend.cpp b/src/zapit/src/frontend.cpp index 9cb455fad..c5dcba0d2 100644 --- a/src/zapit/src/frontend.cpp +++ b/src/zapit/src/frontend.cpp @@ -978,9 +978,13 @@ void CFrontend::positionMotor(uint8_t motorPosition) bool CFrontend::setInput(CZapitChannel * channel, bool nvod) { transponder_list_t::iterator tpI; - transponder_id_t ct = channel->getTransponderId(); + //transponder_id_t ct = channel->getTransponderId(); + transponder_id_t ct = nvod ? (channel->getTransponderId() & 0xFFFFFFFFULL) : channel->getTransponderId(); + transponder_id_t current_id = nvod ? (currentTransponder.TP_id & 0xFFFFFFFFULL) : currentTransponder.TP_id; + //printf("CFrontend::setInput tuned %d nvod %d current_id %llx new %llx\n\n", tuned, nvod, current_id, ct); - if (tuned && (ct == currentTransponder.TP_id)) + //if (tuned && (ct == currentTransponder.TP_id)) + if (tuned && (ct == current_id)) return false; if (nvod) {