[vlc-devel] [PATCH 3/3] demux:mkv: do not set a bool with an integer value in C++

Steve Lhomme robux4 at videolabs.io
Wed Jul 12 11:20:49 CEST 2017


---
 modules/demux/mkv/chapters.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mkv/chapters.cpp b/modules/demux/mkv/chapters.cpp
index 1242908941..3b2a867c98 100644
--- a/modules/demux/mkv/chapters.cpp
+++ b/modules/demux/mkv/chapters.cpp
@@ -147,13 +147,13 @@ bool chapter_item_c::EnterLeaveHelper_ ( bool do_subs,
 
     f_result |= std::count_if ( codecs.begin (), codecs.end (),
       std::mem_fun (co_cb)
-    );
+    ) != 0;
 
     if ( do_subs )
     {
         f_result |= count_if ( sub_chapters.begin (), sub_chapters.end (),
           std::bind2nd( std::mem_fun( ch_cb ), true )
-        );
+        ) != 0;
     }
 
     return f_result;
-- 
2.12.1



More information about the vlc-devel mailing list