[vlc-commits] demux: adaptative: fix ondownload callback for truncated blocks
Francois Cartegnie
git at videolan.org
Wed Jun 10 18:58:03 CEST 2015
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon May 25 21:12:54 2015 +0200| [0068c67831a22b4819990fa4cd1b2a019d70de8b] | committer: Francois Cartegnie
demux: adaptative: fix ondownload callback for truncated blocks
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0068c67831a22b4819990fa4cd1b2a019d70de8b
---
modules/demux/adaptative/Streams.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/adaptative/Streams.cpp b/modules/demux/adaptative/Streams.cpp
index 1c7ff1d..af656c2 100644
--- a/modules/demux/adaptative/Streams.cpp
+++ b/modules/demux/adaptative/Streams.cpp
@@ -218,10 +218,10 @@ size_t Stream::read(HTTPConnectionManager *connManager)
block->i_buffer = (size_t)ret;
adaptationLogic->updateDownloadRate(block->i_buffer, time);
+ chunk->onDownload(&block);
if (chunk->getBytesToRead() == 0)
{
- chunk->onDownload(&block);
chunk->getConnection()->releaseChunk();
currentChunk = NULL;
delete chunk;
More information about the vlc-commits
mailing list