[vlc-commits] auhal: Add debug message to check what audio device is restored
David Fuhrmann
git at videolan.org
Tue Feb 18 22:43:15 CET 2020
vlc/vlc-3.0 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Mon Feb 17 19:41:42 2020 +0100| [879af883d8008330a073845e37c151099b6c9b19] | committer: David Fuhrmann
auhal: Add debug message to check what audio device is restored
(cherry picked from commit 723e88f70cee5489dabba14760b07b2ba57ae9a9)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=879af883d8008330a073845e37c151099b6c9b19
---
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 0026fcc3b2..9eaf794568 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -1762,6 +1762,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