summaryrefslogtreecommitdiff
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
parentf47ee3a2018e9c64927d9a5bd892e4bbc74630e8 (diff)
downloadvdr-plugin-softhddevice-5b90137050a09200b19308776662255c2141dacb.tar.gz
vdr-plugin-softhddevice-5b90137050a09200b19308776662255c2141dacb.tar.bz2
Handle change of audio ac3 downmix direct.
-rw-r--r--ChangeLog1
-rw-r--r--softhddevice.cpp6
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 148f54a..0116a91 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
User johns
Date:
+ Handle change of audio ac3 downmix direct.
Speedup queuing output surface, when decoder buffers are full.
Fix bug: info shows wrong decoded video surfaces.
Calculate queued output surfaces and show them in info message.
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);