[vlc-commits] auhal: Add debug message to check what audio device is restored

David Fuhrmann git at videolan.org
Tue Feb 18 22:42:26 CET 2020


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Mon Feb 17 19:41:42 2020 +0100| [723e88f70cee5489dabba14760b07b2ba57ae9a9] | committer: David Fuhrmann

auhal: Add debug message to check what audio device is restored

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

 modules/audio_output/auhal.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index 03b7ed693a..6c96d802fc 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -1754,6 +1754,11 @@ static int Open(vlc_object_t *obj)
     {
         int dev_id_int = atoi(psz_audio_device);
         UInt32 dev_id = dev_id_int < 0 ? 0 : dev_id_int;
+
+        bool isDigital = (dev_id & AOUT_VAR_SPDIF_FLAG) != 0;
+        msg_Dbg(obj, "Trying to use stored audio device %d (%s)",
+                (dev_id & ~AOUT_VAR_SPDIF_FLAG), isDigital ? "digital" : "analog");
+
         RebuildDeviceList(p_aout, &dev_id);
         p_sys->i_new_selected_dev = dev_id;
         free(psz_audio_device);



More information about the vlc-commits mailing list