[vlc-commits] audiounit_ios: add back the --spdif option

Thomas Guillem git at videolan.org
Wed Mar 22 13:22:27 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Mar 22 13:20:48 2017 +0100| [9ed4d13e59496f2f3ce8923d90a2af7e1bd170a3] | committer: Thomas Guillem

audiounit_ios: add back the --spdif option

This option is for aout that can't negotiate S/PDIF. This is totally the case
for this aout.

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

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

diff --git a/modules/audio_output/audiounit_ios.m b/modules/audio_output/audiounit_ios.m
index de8ed8c..ab212f4 100644
--- a/modules/audio_output/audiounit_ios.m
+++ b/modules/audio_output/audiounit_ios.m
@@ -69,7 +69,7 @@ static const struct {
 } au_devs[] = {
     { "pcm", "Up to 9 channels PCM output", AU_DEV_PCM },
     { "encoded", "Encoded output if available (via HDMI/SPDIF) or PCM output",
-      AU_DEV_ENCODED },
+      AU_DEV_ENCODED }, /* This can also be forced with the --spdif option */
 };
 
 /*****************************************************************************
@@ -514,7 +514,7 @@ Open(vlc_object_t *obj)
 
     sys->b_muted = false;
     sys->b_preferred_channels_set = false;
-    sys->au_dev = AU_DEV_PCM;
+    sys->au_dev = var_InheritBool(aout, "spdif") ? AU_DEV_ENCODED : AU_DEV_PCM;
     aout->sys = sys;
     aout->start = Start;
     aout->stop = Stop;



More information about the vlc-commits mailing list