[vlc-commits] demux: adaptive: clear BLOCK_FLAG_HEADER flag properly
Zhao Zhili
git at videolan.org
Wed Jul 5 14:18:37 CEST 2017
vlc | branch: master | Zhao Zhili <wantlamy at gmail.com> | Wed Jul 5 11:46:21 2017 +0800| [e0a01f99afb84ec9fa2a8b554d3d98fb6ec325ca] | committer: Francois Cartegnie
demux: adaptive: clear BLOCK_FLAG_HEADER flag properly
Signed-off-by: Francois Cartegnie <fcvlcdev at free.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e0a01f99afb84ec9fa2a8b554d3d98fb6ec325ca
---
modules/demux/adaptive/http/Chunk.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/adaptive/http/Chunk.cpp b/modules/demux/adaptive/http/Chunk.cpp
index 176701b0b8..c063e81268 100644
--- a/modules/demux/adaptive/http/Chunk.cpp
+++ b/modules/demux/adaptive/http/Chunk.cpp
@@ -95,7 +95,7 @@ block_t * AbstractChunk::doRead(size_t size, bool b_block)
block->i_flags |= BLOCK_FLAG_HEADER;
bytesRead += block->i_buffer;
onDownload(&block);
- block->i_flags ^= BLOCK_FLAG_HEADER;
+ block->i_flags &= ~BLOCK_FLAG_HEADER;
}
return block;
More information about the vlc-commits
mailing list