Commit ab5b0c5b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

mmdevice: fix crash if several channel volumes change (fixes #12086)

(cherry picked from commit c5f806f480c9eda637b741d29c11b1b00e2a6f06)
parent 375c9c19
...@@ -306,8 +306,12 @@ vlc_AudioSessionEvents_OnChannelVolumeChanged(IAudioSessionEvents *this, ...@@ -306,8 +306,12 @@ vlc_AudioSessionEvents_OnChannelVolumeChanged(IAudioSessionEvents *this,
aout_sys_t *sys = vlc_AudioSessionEvents_sys(this); aout_sys_t *sys = vlc_AudioSessionEvents_sys(this);
audio_output_t *aout = sys->aout; audio_output_t *aout = sys->aout;
if (changed != (DWORD)-1)
msg_Dbg(aout, "channel volume %lu of %lu changed: %f", changed, count, msg_Dbg(aout, "channel volume %lu of %lu changed: %f", changed, count,
vols[changed]); vols[changed]);
else
msg_Dbg(aout, "%lu channels volume changed", count);
(void) ctx; (void) ctx;
return S_OK; return S_OK;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment