[vlc-commits] demux: hls: fix hexdecoding through sstream (fix	#16619)
    Francois Cartegnie 
    git at videolan.org
       
    Sun Feb 14 21:30:12 CET 2016
    
    
  
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Feb 14 21:26:31 2016 +0100| [0ef40975e8ea11e333f6aff3ea2c587fb1341352] | committer: Francois Cartegnie
demux: hls: fix hexdecoding through sstream (fix #16619)
sstream doing broken conversion for a while.
And I still don't know why some ppl including me
have that problem requiring to setlocale on iostream :/
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ef40975e8ea11e333f6aff3ea2c587fb1341352
---
 modules/demux/hls/playlist/Tags.cpp |    1 +
 1 file changed, 1 insertion(+)
diff --git a/modules/demux/hls/playlist/Tags.cpp b/modules/demux/hls/playlist/Tags.cpp
index 9e890f5..edce0ee 100644
--- a/modules/demux/hls/playlist/Tags.cpp
+++ b/modules/demux/hls/playlist/Tags.cpp
@@ -61,6 +61,7 @@ std::vector<uint8_t> Attribute::hexSequence() const
         {
             unsigned val;
             std::stringstream ss(value.substr(i, 2));
+            ss.imbue(std::locale("C"));
             ss >> std::hex >> val;
             ret.push_back(val);
         }
    
    
More information about the vlc-commits
mailing list