summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-03-27 14:26:04 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-03-27 14:26:04 +0200
commit2e8815ece898f9220e939e2fbff7d57d479c0ae5 (patch)
tree1f56d859d64faea9937d4cbaa4133f3ed93f1670
parent830e30e2fb08e11a9c205ad7a664bdd32456d0e8 (diff)
downloadvdr-2e8815ece898f9220e939e2fbff7d57d479c0ae5.tar.gz
vdr-2e8815ece898f9220e939e2fbff7d57d479c0ae5.tar.bz2
Silently ignore MTD index -1
-rw-r--r--mtd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mtd.c b/mtd.c
index 5b3ab766..bf792dd9 100644
--- a/mtd.c
+++ b/mtd.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: mtd.c 1.8 2017/03/27 09:09:37 kls Exp $
+ * $Id: mtd.c 1.9 2017/03/27 14:26:04 kls Exp $
*/
#include "mtd.h"
@@ -77,7 +77,7 @@ int cMtdHandler::Put(const uchar *Data, int Count)
else if (w != TS_SIZE)
esyslog("ERROR: incomplete MTD packet written (%d) in PID %d (%04X)", Index + 1, Pid, Pid);
}
- else
+ else if (Index >= 0) // we silently ignore Index -1 (i.e. MTD number 0), since there are several hundred empty TS packets when switching to an encrypted channel for the first time since startup
esyslog("ERROR: invalid MTD number (%d) in PID %d (%04X)", Index + 1, Pid, Pid);
}
Data += TS_SIZE;