[vlc-devel] commit: use strcasestr in input_MetaMatch too, so search is really case insensitive. (Ilkka Ollakka )

git version control git at videolan.org
Fri Jun 27 22:24:05 CEST 2008


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Fri Jun 27 17:23:54 2008 +0300| [81a758a32f6f46a42c1cd74df5fdc49eba8986ba]

use strcasestr in input_MetaMatch too, so search is really case insensitive.

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

 include/vlc_input.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/vlc_input.h b/include/vlc_input.h
index 13f19d6..be28212 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -31,7 +31,7 @@
 #include <vlc_epg.h>
 #include <vlc_events.h>
 
-#include <string.h>                                     /* strstr() */
+#include <string.h>                                     /* strcasestr() */
 
 struct vlc_meta_t;
 
@@ -169,7 +169,7 @@ static inline bool input_item_MetaMatch( input_item_t *p_i, vlc_meta_type_t meta
         return false;
     }
     const char * meta = vlc_meta_Get( p_i->p_meta, meta_type );
-    bool ret = meta && strstr( meta, psz );
+    bool ret = meta && strcasestr( meta, psz );
     vlc_mutex_unlock( &p_i->lock );
 
     return ret;




More information about the vlc-devel mailing list