[vlc-commits] aout: fix assertion when S/PDIF is used

Rémi Denis-Courmont git at videolan.org
Wed Nov 7 18:44:51 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Nov  7 19:44:37 2012 +0200| [d96db36fd8a8df02339cb6bf26d796d24b332e02] | committer: Rémi Denis-Courmont

aout: fix assertion when S/PDIF is used

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

 src/audio_output/filters.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/audio_output/filters.c b/src/audio_output/filters.c
index ffaf575..4055fcc 100644
--- a/src/audio_output/filters.c
+++ b/src/audio_output/filters.c
@@ -398,12 +398,12 @@ int aout_FiltersNew (audio_output_t *aout,
     owner->rate_filter = NULL;
     owner->resampler = NULL;
 
-    if (!AOUT_FMT_LINEAR(outfmt))
-        return 0;
-
     var_AddCallback (aout, "visual", VisualizationCallback, NULL);
     var_AddCallback (aout, "equalizer", EqualizerCallback, NULL);
 
+    if (!AOUT_FMT_LINEAR(outfmt))
+        return 0;
+
     const char *scaletempo =
         var_InheritBool (aout, "audio-time-stretch") ? "scaletempo" : NULL;
     char *filters = var_InheritString (aout, "audio-filter");



More information about the vlc-commits mailing list