[vlc-commits] vlc_stream: Fix stream_IsMimeType

Hugo Beauzée-Luyssen git at videolan.org
Wed Apr 19 11:22:19 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Apr 19 10:17:42 2017 +0200| [934ff6ee2a6b8df8f7a426fec6f72380304c9df3] | committer: Hugo Beauzée-Luyssen

vlc_stream: Fix stream_IsMimeType

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

 include/vlc_stream.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/vlc_stream.h b/include/vlc_stream.h
index 36cb9cddd0..ca2a2e24b4 100644
--- a/include/vlc_stream.h
+++ b/include/vlc_stream.h
@@ -356,7 +356,7 @@ static inline bool stream_IsMimeType(stream_t *s, const char *type)
     if (mime == NULL)
         return false;
 
-    bool ok = strcasecmp(mime, type);
+    bool ok = !strcasecmp(mime, type);
     free(mime);
     return ok;
 }



More information about the vlc-commits mailing list