[vlc-commits] mmdevice: allow selecting stream back-end

Rémi Denis-Courmont git at videolan.org
Wed Nov 12 21:12:11 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Nov 12 21:25:35 2014 +0200| [491578ce67ecc542c90bf3940fbdb3f90a2b5058] | committer: Rémi Denis-Courmont

mmdevice: allow selecting stream back-end

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=491578ce67ecc542c90bf3940fbdb3f90a2b5058
---

 modules/audio_output/mmdevice.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/audio_output/mmdevice.c b/modules/audio_output/mmdevice.c
index 214a5b6..802acd7 100644
--- a/modules/audio_output/mmdevice.c
+++ b/modules/audio_output/mmdevice.c
@@ -1194,7 +1194,8 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
     {
         HRESULT hr;
 
-        sys->module = vlc_module_load(s, "aout stream", NULL, false,
+        /* TODO: Do not overload the "aout" configuration item. */
+        sys->module = vlc_module_load(s, "aout stream", "$aout", false,
                                       aout_stream_Start, s, fmt, &hr);
         if (hr != AUDCLNT_E_DEVICE_INVALIDATED || DeviceSelect(aout, NULL))
             break;
@@ -1320,6 +1321,6 @@ vlc_module_begin()
     set_capability("audio output", 150)
     set_category(CAT_AUDIO)
     set_subcategory(SUBCAT_AUDIO_AOUT)
-    add_shortcut("wasapi")
+    add_shortcut("wasapi", "directsound")
     set_callbacks(Open, Close)
 vlc_module_end()



More information about the vlc-commits mailing list