[vlc-commits] mmdevice: add missing initializer (fixes #10775)
Rémi Denis-Courmont
git at videolan.org
Fri Feb 28 21:57:54 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Feb 28 22:57:34 2014 +0200| [8da16971d62f105e473532cf9f7a90a13749fcd9] | committer: Rémi Denis-Courmont
mmdevice: add missing initializer (fixes #10775)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8da16971d62f105e473532cf9f7a90a13749fcd9
---
modules/audio_output/mmdevice.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/modules/audio_output/mmdevice.c b/modules/audio_output/mmdevice.c
index 05a12f5..4e114b3 100644
--- a/modules/audio_output/mmdevice.c
+++ b/modules/audio_output/mmdevice.c
@@ -552,9 +552,9 @@ vlc_MMNotificationClient_OnDeviceStateChanged(IMMNotificationClient *this,
}
static STDMETHODIMP
-vlc_MMNotificationClient_OnDevicePropertyChanged(IMMNotificationClient *this,
- LPCWSTR wid,
- const PROPERTYKEY key)
+vlc_MMNotificationClient_OnPropertyValueChanged(IMMNotificationClient *this,
+ LPCWSTR wid,
+ const PROPERTYKEY key)
{
aout_sys_t *sys = vlc_MMNotificationClient_sys(this);
audio_output_t *aout = sys->aout;
@@ -577,7 +577,7 @@ static const struct IMMNotificationClientVtbl vlc_MMNotificationClient =
vlc_MMNotificationClient_OnDeviceAdded,
vlc_MMNotificationClient_OnDeviceRemoved,
vlc_MMNotificationClient_OnDefaultDeviceChange,
- vlc_MMNotificationClient_OnDevicePropertyChanged,
+ vlc_MMNotificationClient_OnPropertyValueChanged,
};
static int DevicesEnum(audio_output_t *aout, IMMDeviceEnumerator *it)
@@ -961,6 +961,7 @@ static int Open(vlc_object_t *obj)
sys->aout = aout;
sys->it = NULL;
sys->dev = NULL;
+ sys->device_events.lpVtbl = &vlc_MMNotificationClient;
sys->session_events.lpVtbl = &vlc_AudioSessionEvents;
sys->refs = 1;
More information about the vlc-commits
mailing list