summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-01-30 16:07:32 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-01-30 16:07:32 +0100
commit2bc0af882ca8c2dfe6edbda7a113416c0005f13f (patch)
tree6a639e88cfe6cc01e42c9204de4cc5acc76aacb5 /device.c
parentcf7867ebe75f07de5dfbf23663f03c8521a012e5 (diff)
downloadvdr-2bc0af882ca8c2dfe6edbda7a113416c0005f13f.tar.gz
vdr-2bc0af882ca8c2dfe6edbda7a113416c0005f13f.tar.bz2
Fixed a hangup when replaying a TS recording with subtitles activated
Diffstat (limited to 'device.c')
-rw-r--r--device.c7
1 files changed, 4 insertions, 3 deletions
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;