[vlc-commits] aout: fix decoder not restarted when needed

Thomas Guillem git at videolan.org
Mon Mar 26 16:51:37 CEST 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Mar 21 11:04:49 2018 +0100| [27e100d1e9584391f71501c32a8b60d7ec469376] | committer: Thomas Guillem

aout: fix decoder not restarted when needed

Since AOUT_RESTART_STEREOMODE = (AOUT_RESTART_OUTPUT|0x4)

(cherry picked from commit f9b57e2a2edf7ff2c1ad6b7875189255ab92d44a)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=27e100d1e9584391f71501c32a8b60d7ec469376
---

 src/audio_output/dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index cf7642ca08..60c35e6176 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -163,7 +163,7 @@ static int aout_CheckReady (audio_output_t *aout)
              * suitable codec (like an HDMI audio format). However, keep the
              * same codec if the aout was restarted because of a stereo-mode
              * change from the user. */
-            if (!(restart & AOUT_RESTART_STEREOMODE))
+            if (restart == AOUT_RESTART_OUTPUT)
                 status = AOUT_DEC_CHANGED;
         }
 



More information about the vlc-commits mailing list