diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-02-26 17:57:02 +0100 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-02-26 17:57:02 +0100 |
commit | 0506a8ef3e733cc1e5a708be42e7c9d92e34e679 (patch) | |
tree | f098b765886447c3898edada74b3583bfdfce35a | |
parent | b372905934878f609ef75c30ee4079b39fc6af3a (diff) | |
download | vdr-plugin-dxr3-0506a8ef3e733cc1e5a708be42e7c9d92e34e679.tar.gz vdr-plugin-dxr3-0506a8ef3e733cc1e5a708be42e7c9d92e34e679.tar.bz2 |
workaround: changing samplerate to -1 (old 48000)
At the moment I am not sure who/what sets samplerate and channel to -1,
but i hope to remove this workaround soon.
-rw-r--r-- | dxr3output-audio.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dxr3output-audio.c b/dxr3output-audio.c index 34064cf..b664737 100644 --- a/dxr3output-audio.c +++ b/dxr3output-audio.c @@ -110,7 +110,13 @@ void cDxr3AudioOutThread::PlayFrame(cFixedLengthFrame *frame) SampleContext ctx; ctx.samplerate = frame->GetSampleRate(); ctx.channels = frame->GetChannelCount(); - audioOutput->setup(ctx); + + // TODO find cause why we need this workaround + if (ctx.samplerate != -1 && ctx.channels != -1) { + audioOutput->setup(ctx); + } else { + dsyslog("[fixme] samplerate: %d channels: %d", ctx.samplerate, ctx.channels); + } // volume changes if (!cDxr3Interface::Instance().IsAudioModeAC3()) { |