summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-01-06 16:25:52 +0100
committerwm4 <wm4@mplayer2.org>2012-01-18 04:21:45 +0100
commit15a318b2a56766e7bc2dee5d4cc8f514ba21fe39 (patch)
treebccff54d0377c85bd48a873ab96d23c1f25c701e
parent29effe9593465f9096227edb79e09e51ca8a054d (diff)
downloadmpv-15a318b2a56766e7bc2dee5d4cc8f514ba21fe39.tar.bz2
mpv-15a318b2a56766e7bc2dee5d4cc8f514ba21fe39.tar.xz
ao_coreaudio: signal that volume controls are not persistent
This will make the mplayer frontend restore the volume on its own when the audio device is reinitialized.
-rw-r--r--libao2/ao_coreaudio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libao2/ao_coreaudio.c b/libao2/ao_coreaudio.c
index 34374f4c9c..50e943e9ac 100644
--- a/libao2/ao_coreaudio.c
+++ b/libao2/ao_coreaudio.c
@@ -450,6 +450,8 @@ int device_id, display_help = 0;
ao->b_revert = 0;
ao->b_changed_mixing = 0;
+ global_ao->no_persistent_volume = true;
+
if (device_id == 0) {
/* Find the ID of the default Device. */
err = GetAudioProperty(kAudioObjectSystemObject,