From 73eae1a7eef46efc5ee1186b1b471c68628d9d6d Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 26 Mar 2013 15:58:09 +0400 Subject: [PATCH] zapit/src/capmt.cpp: dont send capmt, if rawpmt is NULL --- src/zapit/src/capmt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zapit/src/capmt.cpp b/src/zapit/src/capmt.cpp index a161aeed2..275b49a44 100644 --- a/src/zapit/src/capmt.cpp +++ b/src/zapit/src/capmt.cpp @@ -138,7 +138,8 @@ bool CCam::setCaPmt(bool update) bool CCam::sendCaPmt(uint64_t tpid, uint8_t *rawpmt, int rawlen) { - return cCA::GetInstance()->SendCAPMT(tpid, source_demux, camask, cabuf, calen, rawpmt, rawlen); + return cCA::GetInstance()->SendCAPMT(tpid, source_demux, camask, + rawpmt ? cabuf : NULL, rawpmt ? calen : 0, rawpmt, rawlen); } int CCam::makeMask(int demux, bool add)