[vlc-commits] commit: stream_filter/httplive.c: Do not cache on live playback ( Jean-Paul Saman )

git at videolan.org git at videolan.org
Tue Dec 28 14:58:50 CET 2010


vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Tue Dec 28 12:41:32 2010 +0100| [90c85095d9304426b981949274ae3c4daee6d93e] | committer: Jean-Paul Saman 

stream_filter/httplive.c: Do not cache on live playback

Release segments for HLS live streams even when HLS caching is allowed.

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

 modules/stream_filter/httplive.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 644bfbf..9a9ab05 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -1459,7 +1459,7 @@ static ssize_t hls_Read(stream_t *s, uint8_t *p_read, unsigned int i_read)
         vlc_mutex_lock(&segment->lock);
         if (segment->data->i_buffer == 0)
         {
-            if (!p_sys->b_cache)
+            if (!p_sys->b_cache || p_sys->b_live)
             {
                 block_Release(segment->data);
                 segment->data = NULL;



More information about the vlc-commits mailing list