summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-02-08 11:47:15 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-02-08 11:47:15 +0100
commit8cdd705fb40e0017865cf102877871b21ec0f97d (patch)
tree90bb34543a98342fa2268c0eac22292c39341d52 /device.c
parent34d51f5f8375ff711cdf07c5ddef39b10ec6ab88 (diff)
downloadvdr-8cdd705fb40e0017865cf102877871b21ec0f97d.tar.gz
vdr-8cdd705fb40e0017865cf102877871b21ec0f97d.tar.bz2
Fixed a possible freeze in pause mode in case a device's PlayPesPacket() function permanently returns 0
Diffstat (limited to 'device.c')
-rw-r--r--device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/device.c b/device.c
index 46e23bc5..d67639fe 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 1.87 2005/02/06 14:10:37 kls Exp $
+ * $Id: device.c 1.88 2005/02/08 11:37:09 kls Exp $
*/
#include "device.h"
@@ -984,7 +984,7 @@ int cDevice::PlayPes(const uchar *Data, int Length, bool VideoOnly)
int w = PlayPesPacket(Data + i, l, VideoOnly);
if (w > 0)
i += l;
- else if (w < 0)
+ else
return i == 0 ? w : i;
}
else