[vlc-devel] [PATCH] misc: medialibrary: convertTracksCommon: add missing negation

Filip Roséen filip at atch.se
Sat Jul 21 00:08:52 CEST 2018


---
 modules/misc/medialibrary/entities.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/misc/medialibrary/entities.cpp b/modules/misc/medialibrary/entities.cpp
index d8c4d8ca81..f59cabcf04 100644
--- a/modules/misc/medialibrary/entities.cpp
+++ b/modules/misc/medialibrary/entities.cpp
@@ -78,9 +78,9 @@ bool Convert( const medialibrary::IMovie* input, vlc_ml_movie_t& output )
 static bool convertTracksCommon( vlc_ml_media_track_t* output, const std::string& codec,
                                  const std::string& language, const std::string& desc )
 {
-    if( strdup_helper( codec, output->psz_codec ) ||
-        strdup_helper( language, output->psz_language ) ||
-        strdup_helper( desc, output->psz_description ) )
+    if( !strdup_helper( codec, output->psz_codec ) ||
+        !strdup_helper( language, output->psz_language ) ||
+        !strdup_helper( desc, output->psz_description ) )
         return false;
     return true;
 }
-- 
2.18.0


More information about the vlc-devel mailing list