vlc | branch: master | Francois Cartegnie <[email protected]> | 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);
         }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to