[vlc-commits] demux: adaptive: fixup for commit b99bc394843b4967

Andrey Gursky git at videolan.org
Wed Nov 9 17:24:20 CET 2016


vlc | branch: master | Andrey Gursky <andrey.gursky at e-mail.ua> | Sun Nov  6 22:44:36 2016 +0100| [e8d93d5e994b2c77b0d01c69fff8c36b4d55bd0d] | committer: Francois Cartegnie

demux: adaptive: fixup for commit b99bc394843b4967

error: ‘sscanf’ is not a member of ‘std’
        if (std::sscanf(line.c_str(), "%zx%n", &chunkLength, &end) < 1
            ^

Fix build with compilers which do not default to c++11 or later,
e.g. g++ < 6, clang++ up to and including 3.9.

Noticed during build for VLC-Android.

Signed-off-by: Francois Cartegnie <fcvlcdev at free.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e8d93d5e994b2c77b0d01c69fff8c36b4d55bd0d
---

 modules/demux/adaptive/http/HTTPConnection.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/adaptive/http/HTTPConnection.cpp b/modules/demux/adaptive/http/HTTPConnection.cpp
index 824fe4c..3cbedff 100644
--- a/modules/demux/adaptive/http/HTTPConnection.cpp
+++ b/modules/demux/adaptive/http/HTTPConnection.cpp
@@ -26,6 +26,7 @@
 #include "Sockets.hpp"
 #include "../adaptive/tools/Helper.h"
 
+#include <cstdio>
 #include <sstream>
 #include <vlc_stream.h>
 



More information about the vlc-commits mailing list