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

mmdevice: add missing initializer (fixes #10775)

parent 1f337eb4
......@@ -552,7 +552,7 @@ vlc_MMNotificationClient_OnDeviceStateChanged(IMMNotificationClient *this,
}
static STDMETHODIMP
vlc_MMNotificationClient_OnDevicePropertyChanged(IMMNotificationClient *this,
vlc_MMNotificationClient_OnPropertyValueChanged(IMMNotificationClient *this,
LPCWSTR wid,
const PROPERTYKEY key)
{
......@@ -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;
......
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