[vlc-commits] HLS: always use "C" locale to parse float
Jean-Baptiste Kempf
git at videolan.org
Tue Dec 8 10:32:30 CET 2015
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Dec 8 10:10:17 2015 +0100| [a627b3ec5b2c571a2f92a8dcba24208d1fc81d15] | committer: Jean-Baptiste Kempf
HLS: always use "C" locale to parse float
Pointed-by: KO Myung-Hun <komh78 at gmail.com>
Acked-By: Francois Cartegnie <fcvlcdev at free.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a627b3ec5b2c571a2f92a8dcba24208d1fc81d15
---
modules/demux/hls/playlist/Tags.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/hls/playlist/Tags.cpp b/modules/demux/hls/playlist/Tags.cpp
index c8b0361..9c25fc4 100644
--- a/modules/demux/hls/playlist/Tags.cpp
+++ b/modules/demux/hls/playlist/Tags.cpp
@@ -45,7 +45,7 @@ uint64_t Attribute::decimal() const
double Attribute::floatingPoint() const
{
std::istringstream is(value);
- is.imbue(std::locale(""));
+ is.imbue(std::locale("C"));
double ret;
is >> ret;
return ret;
More information about the vlc-commits
mailing list