[vlc-commits] demux: adaptative: fix osx build
    Francois Cartegnie 
    git at videolan.org
       
    Fri May  8 00:08:01 CEST 2015
    
    
  
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri May  8 00:06:08 2015 +0200| [515e3105a49564983e0cf076d72980ff9b5f9da3] | committer: Francois Cartegnie
demux: adaptative: fix osx build
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=515e3105a49564983e0cf076d72980ff9b5f9da3
---
 modules/demux/adaptative/playlist/Url.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/adaptative/playlist/Url.cpp b/modules/demux/adaptative/playlist/Url.cpp
index e84937e..acc64c9 100644
--- a/modules/demux/adaptative/playlist/Url.cpp
+++ b/modules/demux/adaptative/playlist/Url.cpp
@@ -99,7 +99,7 @@ Url::Component::Component(const std::string & str, const MediaSegmentTemplate *t
     templ = templ_;
     if(!component.empty())
     {
-        b_dir = (component.back()=='/');
+        b_dir = (component[component.length()-1]=='/');
         b_scheme = !component.compare(0, 7, "http://") || !component.compare(0, 8, "https://");
     }
 }
    
    
More information about the vlc-commits
mailing list