[vlc-commits] demux: adaptive: fixup for commit b99bc394843b4967
Andrey Gursky
git at videolan.org
Wed Nov 9 17:28:21 CET 2016
vlc | branch: master | Andrey Gursky <andrey.gursky at e-mail.ua> | Sun Nov 6 22:44:36 2016 +0100| [91c23c47ee086f40af53fd366f356d31c504d974] | 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=91c23c47ee086f40af53fd366f356d31c504d974
---
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