summaryrefslogtreecommitdiff
path: root/remux.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-11-25 14:20:03 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2007-11-25 14:20:03 +0100
commitade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7 (patch)
tree8ad5c33123575a50aabd7acb8b05e6b91e6573f8 /remux.c
parenta97119d0b44b52b098de0aa4a4f38939bc4bba9b (diff)
downloadvdr-ade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7.tar.gz
vdr-ade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7.tar.bz2
Implemented setup option "Miscellaneous/Emergency exit"
Diffstat (limited to 'remux.c')
-rw-r--r--remux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/remux.c b/remux.c
index e265c40f..9b9aa24f 100644
--- a/remux.c
+++ b/remux.c
@@ -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) {