From 7257da1505ee2bd56f313d506394e12c150f39a7 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 2 Oct 2014 19:34:55 +0400 Subject: [PATCH] zapit/src/capmt.cpp: never send pmt len, if pnt is NULL --- src/zapit/src/capmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zapit/src/capmt.cpp b/src/zapit/src/capmt.cpp index 9e47597ff..b0143759a 100644 --- a/src/zapit/src/capmt.cpp +++ b/src/zapit/src/capmt.cpp @@ -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)