[vlc-commits] auhal: move default device to top of devices list

David Fuhrmann git at videolan.org
Fri May 10 10:45:47 CEST 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri May 10 10:11:50 2013 +0200| [2cc78471e074a4e2bc52465bbba7883dff7f40fd] | committer: David Fuhrmann

auhal: move default device to top of devices list

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

 modules/audio_output/auhal.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index 9e3246e..180dab2 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -1060,6 +1060,8 @@ static void RebuildDeviceList(audio_output_t * p_aout)
 
     struct aout_sys_t   *p_sys = p_aout->sys;
 
+    ReportDevice(p_aout, 0, _("System Sound Output Device"));
+
     /* setup local array */
     currentListOfDevices = CFArrayCreateMutable(kCFAllocatorDefault, 0, NULL);
 
@@ -1169,8 +1171,6 @@ static void RebuildDeviceList(audio_output_t * p_aout)
     p_sys->device_list = CFArrayCreateCopy(kCFAllocatorDefault, currentListOfDevices);
     CFRelease(currentListOfDevices);
 
-    ReportDevice(p_aout, 0, _("System Sound Output Device"));
-
     free(deviceIDs);
 }
 



More information about the vlc-commits mailing list