mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Silently ignore MTD index -1
This commit is contained in:
parent
830e30e2fb
commit
2e8815ece8
4
mtd.c
4
mtd.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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"
|
#include "mtd.h"
|
||||||
@ -77,7 +77,7 @@ int cMtdHandler::Put(const uchar *Data, int Count)
|
|||||||
else if (w != TS_SIZE)
|
else if (w != TS_SIZE)
|
||||||
esyslog("ERROR: incomplete MTD packet written (%d) in PID %d (%04X)", Index + 1, Pid, Pid);
|
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);
|
esyslog("ERROR: invalid MTD number (%d) in PID %d (%04X)", Index + 1, Pid, Pid);
|
||||||
}
|
}
|
||||||
Data += TS_SIZE;
|
Data += TS_SIZE;
|
||||||
|
Loading…
Reference in New Issue
Block a user