[vlc-commits] aout: remove redundant parameter

Rémi Denis-Courmont git at videolan.org
Fri Apr 26 17:54:29 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Apr 26 18:45:13 2013 +0300| [683f96fa8d6e4b3562c7eb21ca1b9a6e5b93e59d] | committer: Rémi Denis-Courmont

aout: remove redundant parameter

Since audio filters and visualization all have a priority of zero,
forced module loading has no effects.

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

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

diff --git a/src/audio_output/filters.c b/src/audio_output/filters.c
index cd8a296..91972b2 100644
--- a/src/audio_output/filters.c
+++ b/src/audio_output/filters.c
@@ -43,7 +43,7 @@
 #include "aout_internal.h"
 
 static filter_t *CreateFilter (vlc_object_t *obj, const char *type,
-                               const char *name, bool force,
+                               const char *name,
                                const audio_sample_format_t *infmt,
                                const audio_sample_format_t *outfmt)
 {
@@ -56,7 +56,7 @@ static filter_t *CreateFilter (vlc_object_t *obj, const char *type,
     filter->fmt_in.i_codec = infmt->i_format;
     filter->fmt_out.audio = *outfmt;
     filter->fmt_out.i_codec = outfmt->i_format;
-    filter->p_module = module_need (filter, type, name, force);
+    filter->p_module = module_need (filter, type, name, false);
     if (filter->p_module == NULL)
     {
         /* If probing failed, formats shall not have been modified. */
@@ -74,14 +74,14 @@ static filter_t *FindConverter (vlc_object_t *obj,
                                 const audio_sample_format_t *infmt,
                                 const audio_sample_format_t *outfmt)
 {
-    return CreateFilter (obj, "audio converter", NULL, false, infmt, outfmt);
+    return CreateFilter (obj, "audio converter", NULL, infmt, outfmt);
 }
 
 static filter_t *FindResampler (vlc_object_t *obj,
                                 const audio_sample_format_t *infmt,
                                 const audio_sample_format_t *outfmt)
 {
-    return CreateFilter (obj, "audio resampler", "$audio-resampler", false,
+    return CreateFilter (obj, "audio resampler", "$audio-resampler",
                          infmt, outfmt);
 }
 
@@ -343,7 +343,7 @@ static int AppendFilter(vlc_object_t *obj, const char *type, const char *name,
         return -1;
     }
 
-    filter_t *filter = CreateFilter (obj, type, name, true, infmt, outfmt);
+    filter_t *filter = CreateFilter (obj, type, name, infmt, outfmt);
     if (filter == NULL)
     {
         msg_Err (obj, "cannot add user %s \"%s\" (skipped)", type, name);



More information about the vlc-commits mailing list