diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2017-03-27 09:09:37 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2017-03-27 09:09:37 +0200 |
commit | d60336ba96e80288a05e519eb087ecff9988347f (patch) | |
tree | 07e81401389282d185efbc81bf3d7b4b900d35f3 /mtd.c | |
parent | 44813e56a5aa82a86225dc7e9cfa619929e129b5 (diff) | |
download | vdr-d60336ba96e80288a05e519eb087ecff9988347f.tar.gz vdr-d60336ba96e80288a05e519eb087ecff9988347f.tar.bz2 |
Added TS_SYNC to cMtdHandler::Put()
Diffstat (limited to 'mtd.c')
-rw-r--r-- | mtd.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: mtd.c 1.7 2017/03/27 08:35:29 kls Exp $ + * $Id: mtd.c 1.8 2017/03/27 09:09:37 kls Exp $ */ #include "mtd.h" @@ -61,6 +61,8 @@ int cMtdHandler::Put(const uchar *Data, int Count) { int Used = 0; while (Count >= TS_SIZE) { + if (int Skipped = TS_SYNC(Data, Count)) + return Used + Skipped; int Pid = TsPid(Data); if (Pid != CATPID) { // the original CAT with mapped PIDs must be skipped here! #ifdef KEEPPIDS |