From: hschang Date: Fri, 5 Dec 2014 04:56:58 +0000 (+0900) Subject: [PATready] 'cnt' is increased twice, causing failure to obtain a single pmtpid. X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=23f75a8d35e2f353ea66873a83265477a8279fb6;ds=sidebyside [PATready] 'cnt' is increased twice, causing failure to obtain a single pmtpid. --- diff --git a/lib/dvb/pmt.cpp b/lib/dvb/pmt.cpp index febfd78..96645a1 100644 --- a/lib/dvb/pmt.cpp +++ b/lib/dvb/pmt.cpp @@ -169,7 +169,6 @@ void eDVBServicePMTHandler::PATready(int) ProgramAssociationConstIterator program; for (program = pat.getPrograms()->begin(); pmtpid == -1 && program != pat.getPrograms()->end(); ++program) { - ++cnt; if (eServiceID((*program)->getProgramNumber()) == m_reference.getServiceID()) pmtpid = (*program)->getProgramMapPid(); if (++cnt == 1 && pmtpid_single == -1 && pmtpid == -1)