From patchwork Sat Jan 10 20:58:50 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johann Friedrichs X-Patchwork-Id: 12695 Received: from fmmailgate03.web.de ([217.72.192.234]) by www.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1LLkvt-0007FR-S7 for vdr@linuxtv.org; Sat, 10 Jan 2009 21:59:51 +0100 Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate03.web.de (Postfix) with ESMTP id 91FBFF666B9D for ; Sat, 10 Jan 2009 21:59:16 +0100 (CET) Received: from [91.13.89.31] (helo=[192.168.2.214]) by smtp06.web.de with asmtp (WEB.DE 4.110 #273) id 1LLkvM-00066L-00 for vdr@linuxtv.org; Sat, 10 Jan 2009 21:59:16 +0100 Message-ID: <49690C0A.9050901@web.de> Date: Sat, 10 Jan 2009 21:58:50 +0100 From: Johann Friedrichs User-Agent: Thunderbird 1.5.0.14 (X11/20060911) MIME-Version: 1.0 To: vdr@linuxtv.org X-Enigmail-Version: 0.95.2 Sender: johann.friedrichs@web.de X-Sender: johann.friedrichs@web.de X-Provags-ID: V01U2FsdGVkX19GbTF6HmIiTOlJrzwb0a4i+8jYEHGqXVqZru7J nr6PNrU6lsETIC7zjxkHytPCL1mKisz7bRmhU1sGghNE31vwiE NG2LA20KTIHdgGjWsWzg== X-LSpam-Score: -2.6 (--) X-LSpam-Report: No, score=-2.6 required=5.0 tests=BAYES_00=-2.599 autolearn=ham Subject: Re: [vdr] [ANNOUNCE] VDR developer version 1.7.3 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: Sat, 10 Jan 2009 20:59:51 -0000 Status: O X-Status: X-Keywords: X-UID: 19136 Hi, there seems to be problem in pausing replays of new recordings (output to FF). 4 out of 5 times vdr freezes when trying to continue the replay. Poll in PlayVideo runs into a timeout and a new write gives EAGAIN. This does not happen with old recordings. Most likely splitting long PES-packets not on frame-boundaries prevents the FF-driver from finding a good start-point after DvbDevice->Freeze(). A rough workaround is attached, but maybe the idea to dump the old remux code was not the best one, as long as the FF and some plugins need PES-output. Replaying TS with VLC gives lots of TS discontinuities for PID 0 and 132. Attached is a fix. Regards Johann --- vdr-1.7.3/remux.c.dist 2009-01-07 20:40:53.000000000 +0100 +++ vdr-1.7.3/remux.c 2009-01-10 14:48:31.000000000 +0100 @@ -320,7 +320,7 @@ uchar *cPatPmtGenerator::GetPat(void) uchar *cPatPmtGenerator::GetPmt(int &Index) { if (Index < numPmtPackets) { - IncCounter(patCounter, pmt[Index]); + IncCounter(pmtCounter, pmt[Index]); return pmt[Index++]; } return NULL;