zapit/src/capmt.cpp: never send pmt len, if pnt is NULL

This commit is contained in:
[CST] Focus
2014-10-02 19:34:55 +04:00
parent e9661bc5cd
commit 7257da1505

View File

@@ -145,7 +145,7 @@ bool CCam::setCaPmt(bool update)
bool CCam::sendCaPmt(uint64_t tpid, uint8_t *rawpmt, int rawlen)
{
return cCA::GetInstance()->SendCAPMT(tpid, source_demux, camask,
rawpmt ? cabuf : NULL, rawpmt ? calen : 0, rawpmt, rawlen);
rawpmt ? cabuf : NULL, rawpmt ? calen : 0, rawpmt, rawpmt ? rawlen : 0);
}
int CCam::makeMask(int demux, bool add)