[vlc-commits] [Git][videolan/vlc][master] src: filter_chain: remove usage of generic force flag

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Apr 25 20:14:19 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
8d61853d by Abderhman Gamal at 2026-04-25T19:58:46+00:00
src: filter_chain: remove usage of generic force flag

The generic obj.force flag should not be used by filters.

This entirely removes the assignment and reset of p_filter->obj.force during the filter module loading process.

Signed-off-by: Abderhman Gamal <abderhmangamal246 at gmail.com>

- - - - -


1 changed file:

- src/misc/filter_chain.c


Changes:

=====================================
src/misc/filter_chain.c
=====================================
@@ -36,16 +36,13 @@
 module_t *vlc_filter_LoadModule(filter_t *p_filter, const char *capability,
                                 const char *name, bool strict)
 {
-    const bool b_force_backup = p_filter->obj.force; /* FIXME: remove this */
-
     if (name == NULL || name[0] == '\0')
         name = "any";
 
     /* Find matching modules */
     module_t **mods;
-    size_t strict_total;
     ssize_t total = vlc_module_match(capability, name, strict,
-                                     &mods, &strict_total);
+                                     &mods, NULL);
 
     if (unlikely(total < 0))
         return NULL;
@@ -65,7 +62,6 @@ module_t *vlc_filter_LoadModule(filter_t *p_filter, const char *capability,
             continue;
 
         p_filter->p_module = cand;
-        p_filter->obj.force = i < strict_total;
         ret = cb(p_filter);
         if (ret == VLC_SUCCESS)
         {
@@ -96,7 +92,6 @@ module_t *vlc_filter_LoadModule(filter_t *p_filter, const char *capability,
         var_SetString(p_filter, "module-name", module_get_object(p_filter->p_module));
     }
 
-    p_filter->obj.force = b_force_backup;
     return p_filter->p_module;
 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8d61853d5b79c0753db6c8cc7dc551c70112440b

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8d61853d5b79c0753db6c8cc7dc551c70112440b
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list