[mythtv-users] DTS Passthrough
Jean-Yves Avenard
jyavenard at gmail.com
Wed Jun 30 12:01:24 UTC 2010
Hi
On 30 June 2010 21:59, Jean-Yves Avenard <jyavenard at gmail.com> wrote:
> Hi
>
> On 30 June 2010 21:43, mythtv <mythtv at moasat.dyndns.org> wrote:
>> Yes, I do. I tried that figuring that it has already known that the codec
>> is either AC3 or DTS and that I've already told it to pass those through, it
>> might not matter whether the NVP thinks passthru is possible, although I'm
>> sure there are reasons why it should disable it at times.
>
> I have identified the issue...
> Fixing an earlier bug, caused all DTS or AC3 audio to be decoded then
> re-encoded :(
>
Here is the fix:
Index: libs/libmythtv/avformatdecoder.cpp
===================================================================
--- libs/libmythtv/avformatdecoder.cpp (revision 25221)
+++ libs/libmythtv/avformatdecoder.cpp (working copy)
@@ -4713,6 +4713,13 @@
audioOut.do_passthru);
GetNVP()->ReinitAudio();
+ if (using_passthru != DoPassThrough(codec_ctx))
+ {
+ // detected audio capabilities changed half-way
+ // recheck audio stream
+ VERBOSE(VB_AUDIO, LOC + "Audio config changed. Rescanning");
+ return SetupAudioStream();
+ }
if (LCD *lcd = LCD::Get())
{
More information about the mythtv-users
mailing list