summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-10-17 18:34:17 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-10-17 18:34:17 +0200
commitdd26d8873fc1e802425632899318f6d0e58f4346 (patch)
treefaff9485e280e30c12b9b55ae6ef94140151660c /device.c
parent67df515c06774a549078026816a32f8520c08d17 (diff)
downloadvdr-dd26d8873fc1e802425632899318f6d0e58f4346.tar.gz
vdr-dd26d8873fc1e802425632899318f6d0e58f4346.tar.bz2
Fixed checking compatibility mode for old subtitles plugin
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 73decabb..43b44aab 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.145 2007/10/14 13:09:19 kls Exp $
+ * $Id: device.c 1.146 2007/10/17 18:31:02 kls Exp $
*/
#include "device.h"
@@ -1236,7 +1236,7 @@ int cDevice::PlayPesPacket(const uchar *Data, int Length, bool VideoOnly)
int PayloadOffset = Data[8] + 9;
// Compatibility mode for old subtitles plugin:
- if ((Data[PayloadOffset - 3] & 0x81) == 1 && Data[PayloadOffset - 2] == 0x81)
+ if ((Data[7] & 0x01) && (Data[PayloadOffset - 3] & 0x81) == 0x01 && Data[PayloadOffset - 2] == 0x81)
PayloadOffset--;
uchar SubStreamId = Data[PayloadOffset];