[vlc-commits] objects: update hacked object name list
Thomas Guillem
git at videolan.org
Wed Apr 4 19:05:19 CEST 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Apr 4 19:04:37 2018 +0200| [4bd4423629eb515092679801a6c75cd9c1c5c6d7] | committer: Thomas Guillem
objects: update hacked object name list
QT and macOS gui don't need vlc_object_find_name for filters anymore.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4bd4423629eb515092679801a6c75cd9c1c5c6d7
---
src/misc/objects.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/src/misc/objects.c b/src/misc/objects.c
index ea8620a4e5..d1ea869410 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -388,13 +388,8 @@ vlc_object_t *vlc_object_find_name( vlc_object_t *p_this, const char *psz_name )
/* This was officially deprecated on August 19 2009. For the convenience of
* wannabe code janitors, this is the list of names that remain used
* and unfixed since then. */
- static const char bad[][11] = { "adjust", "clone", "colorthres",
- "erase", "extract", "gradient", "logo", "marq", "motionblur", "puzzle",
- "rotate", "sharpen", "transform", "v4l2", "wall" };
- static const char poor[][13] = { "invert", "magnify", "motiondetect",
- "psychedelic", "ripple", "wave" };
- if( bsearch( psz_name, bad, 15, 11, (void *)strcmp ) == NULL
- && bsearch( psz_name, poor, 6, 13, (void *)strcmp ) == NULL )
+ static const char bad[][5] = { "v4l2", "zvbi" };
+ if( bsearch( psz_name, bad, 2, 5, (void *)strcmp ) == NULL )
return NULL;
msg_Err( p_this, "looking for object \"%s\"... FIXME XXX", psz_name );
#endif
More information about the vlc-commits
mailing list