diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-11-25 14:20:03 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-11-25 14:20:03 +0100 |
commit | ade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7 (patch) | |
tree | 8ad5c33123575a50aabd7acb8b05e6b91e6573f8 /remux.c | |
parent | a97119d0b44b52b098de0aa4a4f38939bc4bba9b (diff) | |
download | vdr-ade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7.tar.gz vdr-ade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7.tar.bz2 |
Implemented setup option "Miscellaneous/Emergency exit"
Diffstat (limited to 'remux.c')
-rw-r--r-- | remux.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -11,7 +11,7 @@ * The cRepacker family's code was originally written by Reinhard Nissl <rnissl@gmx.de>, * and adapted to the VDR coding style by Klaus.Schmidinger@cadsoft.de. * - * $Id: remux.c 1.63 2007/11/18 14:45:28 kls Exp $ + * $Id: remux.c 1.64 2007/11/25 13:56:03 kls Exp $ */ #include "remux.h" @@ -2099,8 +2099,10 @@ uchar *cRemux::Get(int &Count, uchar *PictureType) if (pt != NO_PICTURE) { if (pt < I_FRAME || B_FRAME < pt) { esyslog("ERROR: unknown picture type '%d'", pt); - if (++numUPTerrors > MAXNUMUPTERRORS && exitOnFailure) + if (++numUPTerrors > MAXNUMUPTERRORS && exitOnFailure) { ShutdownHandler.RequestEmergencyExit(); + numUPTerrors = 0; + } } else if (!synced) { if (pt == I_FRAME) { |