summaryrefslogtreecommitdiff
path: root/softhddevice.cpp
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2015-09-30 12:24:26 +0200
committerJohns <johns98@gmx.net>2015-09-30 12:24:26 +0200
commit5b90137050a09200b19308776662255c2141dacb (patch)
treeed96af71da6f40aa731bbb50e390344dcee0e061 /softhddevice.cpp
parentf47ee3a2018e9c64927d9a5bd892e4bbc74630e8 (diff)
downloadvdr-plugin-softhddevice-5b90137050a09200b19308776662255c2141dacb.tar.gz
vdr-plugin-softhddevice-5b90137050a09200b19308776662255c2141dacb.tar.bz2
Handle change of audio ac3 downmix direct.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r--softhddevice.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp
index af4bd73..70994d7 100644
--- a/softhddevice.cpp
+++ b/softhddevice.cpp
@@ -1336,6 +1336,12 @@ void cMenuSetupSoft::Store(void)
VideoSetAudioDelay(ConfigVideoAudioDelay);
SetupStore("AudioDrift", ConfigAudioDrift = AudioDrift);
CodecSetAudioDrift(ConfigAudioDrift);
+
+ // FIXME: can handle more audio state changes here
+ // downmix changed reset audio, to get change direct
+ if (ConfigAudioDownmix != AudioDownmix) {
+ ResetChannelId();
+ }
ConfigAudioPassthrough = (AudioPassthroughPCM ? CodecPCM : 0)
| (AudioPassthroughAC3 ? CodecAC3 : 0)
| (AudioPassthroughEAC3 ? CodecEAC3 : 0);