From patchwork Sun Mar 20 13:38:53 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Antti_J=C3=A4rvinen?= X-Patchwork-Id: 11810 Received: from fep16.inet.fi ([194.251.242.241]) by www.linuxtv.org with esmtp (Exim 4.34) id 1DD0dm-0006wb-Cw for vdr@linuxtv.org; Sun, 20 Mar 2005 14:38:50 +0100 Received: from [127.0.0.1] ([80.220.58.33]) by fep16.inet.fi with ESMTP id <20050320133900.NEVO49.fep16.inet.fi@[127.0.0.1]> for ; Sun, 20 Mar 2005 15:39:00 +0200 Message-ID: <423D7CED.7070208@iki.fi> Date: Sun, 20 Mar 2005 15:38:53 +0200 From: =?ISO-8859-1?Q?Antti_J=E4rvinen?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Klaus Schmidinger's VDR References: <1110221082.18201.178.camel@bobcat.mine.nu> <1110265599.18201.321.camel@bobcat.mine.nu> In-Reply-To: <1110265599.18201.321.camel@bobcat.mine.nu> Subject: [vdr] Re: DXR3, which versions to select? X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Mar 2005 13:38:53 -0000 Status: O X-Status: X-Keywords: X-UID: 864 Ville Skyttä wrote: > > The most glaring DXR3 plugin problems I'm aware of are: > - No sound with the MP3 or DVD plugins with VDR >= 1.3.18 The attached patch should resolve the problem with the MP3-plugin. The patch is against cvs-version in vdr-dxr3-stable branch. BR, Antti Index: dxr3device.c =================================================================== RCS file: /cvsroot/dxr3plugin/dxr3/dxr3device.c,v retrieving revision 1.2.2.8 diff -w -b -u -r1.2.2.8 dxr3device.c --- dxr3device.c 18 Mar 2005 22:31:55 -0000 1.2.2.8 +++ dxr3device.c 20 Mar 2005 13:22:15 -0000 @@ -383,12 +383,19 @@ if (m_strBuf.length()) { m_strBuf.append((const char*)Data, Length); + if (m_PlayMode == pmAudioOnly) { + retLength = m_DemuxDevice.DemuxAudioPes((const uint8_t*)m_strBuf.data(), m_strBuf.length()); + } else { retLength = m_DemuxDevice.DemuxPes((const uint8_t*)m_strBuf.data(), m_strBuf.length(), true); } - else - { + + } else { + if (m_PlayMode == pmAudioOnly) { + retLength = m_DemuxDevice.DemuxAudioPes((const uint8_t*)Data, Length); + } else { retLength = m_DemuxDevice.DemuxPes((const uint8_t*)Data, Length, true); } + } Length -= retLength;