From patchwork Fri Jan 30 16:04:32 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Klaus Schmidinger X-Patchwork-Id: 12701 Received: from crow.cadsoft.de ([217.86.189.86] helo=raven.cadsoft.de) by www.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1LSvrA-0008Np-C5 for vdr@linuxtv.org; Fri, 30 Jan 2009 17:04:37 +0100 Received: from [192.168.100.10] (hawk.cadsoft.de [192.168.100.10]) by raven.cadsoft.de (8.14.3/8.14.3) with ESMTP id n0UG4W3e012029 for ; Fri, 30 Jan 2009 17:04:32 +0100 Message-ID: <49832510.9090208@cadsoft.de> Date: Fri, 30 Jan 2009 17:04:32 +0100 From: Klaus Schmidinger Organization: CadSoft Computer GmbH User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: vdr@linuxtv.org References: <4981FE63.4080107@mbnet.fi> In-Reply-To: <4981FE63.4080107@mbnet.fi> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (raven.cadsoft.de [192.168.1.1]); Fri, 30 Jan 2009 17:04:33 +0100 (CET) X-LSpam-Score: -2.6 (--) X-LSpam-Report: No, score=-2.6 required=5.0 tests=AWL=0.007, BAYES_00=-2.599 autolearn=ham Subject: Re: [vdr] Vdr 1.7.4 replay hangs, when subtitles start X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2009 16:04:37 -0000 Status: O X-Status: X-Keywords: X-UID: 19416 On 29.01.2009 20:07, Timo Helkio wrote: > Hi all, > > > Vdr-1.7.4 stops playing recordings with subtitles, when subtitles start > and in the log is seen "subtitleConverter thread started". There are no > other messages in the log and replay goes on if you press FF and play > buttons again. I have a Nexus-s card as tv-output and this happens with > "pure" Vdr, no patches and plugins installed. Here's the fix: Klaus --- device.c 2009/01/25 11:10:56 2.11 +++ device.c 2009/01/30 16:01:53 @@ -1304,8 +1304,9 @@ 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;