[vlc-commits] hls: fix bool in arithmetic context warning
    Rémi Denis-Courmont 
    git at videolan.org
       
    Wed Jun 28 22:51:04 CEST 2017
    
    
  
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jun 28 23:16:08 2017 +0300| [3ec0064964845e943ebb8ec417f07d3a541c796c] | committer: Rémi Denis-Courmont
hls: fix bool in arithmetic context warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3ec0064964845e943ebb8ec417f07d3a541c796c
---
 modules/demux/hls/playlist/Parser.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/hls/playlist/Parser.cpp b/modules/demux/hls/playlist/Parser.cpp
index d458ada1f6..308139a1df 100644
--- a/modules/demux/hls/playlist/Parser.cpp
+++ b/modules/demux/hls/playlist/Parser.cpp
@@ -135,7 +135,7 @@ Representation * M3U8Parser::createRepresentation(BaseAdaptationSet *adaptSet, c
         if(resAttr)
         {
             std::pair<int, int> res = resAttr->getResolution();
-            if(res.first * res.second)
+            if(res.first && res.second)
             {
                 rep->setWidth(res.first);
                 rep->setHeight(res.second);
    
    
More information about the vlc-commits
mailing list