[vlc-commits] auhal: fixed 'Pause' in SPDIF mode

Felix Paul Kühne git at videolan.org
Thu Jan 24 15:51:17 CET 2013


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Jan 24 15:49:25 2013 +0100| [32a596a16a54393c26bf30a31727c0cf5670a6ff] | committer: Felix Paul Kühne

auhal: fixed 'Pause' in SPDIF mode

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

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

diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index 86e3030..bcc1d46 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -1277,12 +1277,20 @@ static void Play (audio_output_t * p_aout, block_t * p_block)
 
 static void Pause (audio_output_t *p_aout, bool pause, mtime_t date)
 {
+    struct aout_sys_t * p_sys = p_aout->sys;
     VLC_UNUSED(date);
 
-    if (pause)
-        AudioOutputUnitStop(p_aout->sys->au_unit);
-    else
-        AudioOutputUnitStart(p_aout->sys->au_unit);
+    if (p_aout->sys->b_digital) {
+        if (pause)
+            AudioDeviceStop(p_sys->i_selected_dev, p_sys->i_procID);
+        else
+            AudioDeviceStart(p_sys->i_selected_dev, p_sys->i_procID);
+    } else {
+        if (pause)
+            AudioOutputUnitStop(p_sys->au_unit);
+        else
+            AudioOutputUnitStart(p_sys->au_unit);
+    }
 }
 
 static void Flush(audio_output_t *p_aout, bool wait)



More information about the vlc-commits mailing list