[vlc-commits] demux: adaptive: fix inverted logic

Zhao Zhili git at videolan.org
Thu Oct 12 09:22:40 CEST 2017


vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Thu Oct 12 11:50:05 2017 +0800| [f9a64520582ac36bc7bf32d2c5b38a20af0aed6d] | committer: Francois Cartegnie

demux: adaptive: fix inverted logic

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

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

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

diff --git a/modules/demux/adaptive/http/HTTPConnection.cpp b/modules/demux/adaptive/http/HTTPConnection.cpp
index 21cf1dc97d..5934fb7270 100644
--- a/modules/demux/adaptive/http/HTTPConnection.cpp
+++ b/modules/demux/adaptive/http/HTTPConnection.cpp
@@ -239,7 +239,7 @@ int HTTPConnection::parseReply()
     for( ;; )
     {
         std::string l = readLine();
-        if(!l.empty() && l.compare("\r\n"))
+        if(l.empty() || l.compare("\r\n") == 0)
             break;
         lines.append(l);
 



More information about the vlc-commits mailing list