From 53db7cd6f0c35e3f7072a3bf91e91e57ae17c9cc Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Wed, 2 Oct 2013 17:50:49 +0200 Subject: [PATCH] eitd: -fix wakeup epg scan with max_events==0 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/6321bd181012adcd646bd6672e4fbf099453c2c9 Author: Jacek Jendrzej Date: 2013-10-02 (Wed, 02 Oct 2013) --- src/eitd/sectionsd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eitd/sectionsd.cpp b/src/eitd/sectionsd.cpp index 8e0914fe9..5515c0c0b 100644 --- a/src/eitd/sectionsd.cpp +++ b/src/eitd/sectionsd.cpp @@ -903,7 +903,7 @@ static void commandserviceChanged(int connfd, char *data, const unsigned dataLen /* assume live demux always 0, other means background scan */ if (cmd->dnum) { /* dont wakeup EIT, if we have max events allready */ - if (max_events && (mySIeventsOrderUniqueKey.size() < max_events)) { + if (max_events == 0 || (mySIeventsOrderUniqueKey.size() < max_events)) { threadEIT.setDemux(cmd->dnum); threadEIT.setCurrentService(uniqueServiceKey); }