diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-01-30 16:07:32 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-01-30 16:07:32 +0100 |
commit | 2bc0af882ca8c2dfe6edbda7a113416c0005f13f (patch) | |
tree | 6a639e88cfe6cc01e42c9204de4cc5acc76aacb5 /device.c | |
parent | cf7867ebe75f07de5dfbf23663f03c8521a012e5 (diff) | |
download | vdr-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.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |