From 2bc0af882ca8c2dfe6edbda7a113416c0005f13f Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 30 Jan 2009 16:07:32 +0100 Subject: Fixed a hangup when replaying a TS recording with subtitles activated --- device.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'device.c') diff --git a/device.c b/device.c index 1f806e02..4a20fd74 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 2.11 2009/01/25 11:10:56 kls Exp $ + * $Id: device.c 2.12 2009/01/30 16:01:53 kls Exp $ */ #include "device.h" @@ -1304,8 +1304,9 @@ int cDevice::PlayTsSubtitle(const uchar *Data, int Length) if (!dvbSubtitleConverter) dvbSubtitleConverter = new cDvbSubtitleConverter; tsToPesSubtitle.PutTs(Data, Length); - if (const uchar *p = tsToPesSubtitle.GetPes(Length)) { - dvbSubtitleConverter->Convert(p, Length); + int l; + if (const uchar *p = tsToPesSubtitle.GetPes(l)) { + dvbSubtitleConverter->Convert(p, l); tsToPesSubtitle.Reset(); } return Length; -- cgit v1.2.3