[vlc-commits] mmdevice: get mmdevice-backend value explicitly
Rémi Denis-Courmont
git at videolan.org
Tue Jan 30 20:45:15 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jan 30 21:19:29 2018 +0200| [4c365832b269ac4ebd89528c10470a93867a0c1b] | committer: Rémi Denis-Courmont
mmdevice: get mmdevice-backend value explicitly
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4c365832b269ac4ebd89528c10470a93867a0c1b
---
modules/audio_output/mmdevice.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/audio_output/mmdevice.c b/modules/audio_output/mmdevice.c
index b07494cd5b..40c03ee18f 100644
--- a/modules/audio_output/mmdevice.c
+++ b/modules/audio_output/mmdevice.c
@@ -1113,11 +1113,13 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
EnterCriticalSection(&sys->lock);
for (;;)
{
+ char *modlist = var_InheritString(aout, "mmdevice-backend");
HRESULT hr;
s->owner.device = sys->dev;
- sys->module = vlc_module_load(s, "aout stream", "$mmdevice-backend",
+ sys->module = vlc_module_load(s, "aout stream", modlist,
false, aout_stream_Start, s, fmt, &hr);
+ free(modlist);
int ret = -1;
if (hr == AUDCLNT_E_ALREADY_INITIALIZED)
More information about the vlc-commits
mailing list