[vlc-devel] [PATCH] demux: adaptive: fix inverted logic
Zhao Zhili
quinkblack at foxmail.com
Thu Oct 12 05:56:29 CEST 2017
---
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);
--
2.14.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-demux-adaptive-fix-inverted-logic.patch
Type: application/octet-stream
Size: 829 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20171012/d63d0d6e/attachment.obj>
More information about the vlc-devel
mailing list