[vlc-commits] demux: adaptive: output http error messages

Francois Cartegnie git at videolan.org
Sun Jan 1 18:45:22 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Jan  1 17:39:36 2017 +0100| [3dcdfe1d35282bd6b61262c2a2d506bd08055c15] | committer: Francois Cartegnie

demux: adaptive: output http error messages

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

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

diff --git a/modules/demux/adaptive/http/HTTPConnection.cpp b/modules/demux/adaptive/http/HTTPConnection.cpp
index 996051c..79ce1be 100644
--- a/modules/demux/adaptive/http/HTTPConnection.cpp
+++ b/modules/demux/adaptive/http/HTTPConnection.cpp
@@ -226,7 +226,10 @@ int HTTPConnection::parseReply()
     int replycode;
     ss >> replycode;
     if (replycode != 200 && replycode != 206)
+    {
+        msg_Err(p_object, "Failed reading %s: %s", params.getUrl().c_str(), line.c_str());
         return VLC_ENOOBJ;
+    }
 
     line = readLine();
 



More information about the vlc-commits mailing list