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

mmdevice: add missing initializer (fixes #10775)

parent 1f337eb4
...@@ -552,9 +552,9 @@ vlc_MMNotificationClient_OnDeviceStateChanged(IMMNotificationClient *this, ...@@ -552,9 +552,9 @@ vlc_MMNotificationClient_OnDeviceStateChanged(IMMNotificationClient *this,
} }
static STDMETHODIMP static STDMETHODIMP
vlc_MMNotificationClient_OnDevicePropertyChanged(IMMNotificationClient *this, vlc_MMNotificationClient_OnPropertyValueChanged(IMMNotificationClient *this,
LPCWSTR wid, LPCWSTR wid,
const PROPERTYKEY key) const PROPERTYKEY key)
{ {
aout_sys_t *sys = vlc_MMNotificationClient_sys(this); aout_sys_t *sys = vlc_MMNotificationClient_sys(this);
audio_output_t *aout = sys->aout; audio_output_t *aout = sys->aout;
...@@ -577,7 +577,7 @@ static const struct IMMNotificationClientVtbl vlc_MMNotificationClient = ...@@ -577,7 +577,7 @@ static const struct IMMNotificationClientVtbl vlc_MMNotificationClient =
vlc_MMNotificationClient_OnDeviceAdded, vlc_MMNotificationClient_OnDeviceAdded,
vlc_MMNotificationClient_OnDeviceRemoved, vlc_MMNotificationClient_OnDeviceRemoved,
vlc_MMNotificationClient_OnDefaultDeviceChange, vlc_MMNotificationClient_OnDefaultDeviceChange,
vlc_MMNotificationClient_OnDevicePropertyChanged, vlc_MMNotificationClient_OnPropertyValueChanged,
}; };
static int DevicesEnum(audio_output_t *aout, IMMDeviceEnumerator *it) static int DevicesEnum(audio_output_t *aout, IMMDeviceEnumerator *it)
...@@ -961,6 +961,7 @@ static int Open(vlc_object_t *obj) ...@@ -961,6 +961,7 @@ static int Open(vlc_object_t *obj)
sys->aout = aout; sys->aout = aout;
sys->it = NULL; sys->it = NULL;
sys->dev = NULL; sys->dev = NULL;
sys->device_events.lpVtbl = &vlc_MMNotificationClient;
sys->session_events.lpVtbl = &vlc_AudioSessionEvents; sys->session_events.lpVtbl = &vlc_AudioSessionEvents;
sys->refs = 1; 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