[vlc-commits] commit: stream_filter/httplive.c: do not calculate stream size for live streams (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 13:13:00 2010 +0100| [5af85ce47daf121a00eed6ad13d41fc28e21c610] | committer: Jean-Paul Saman 

stream_filter/httplive.c: do not calculate stream size for live streams

It is not possible to calculate a stream size for a live HLS stream.

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

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

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 1402acd..047094a 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -810,9 +810,11 @@ static int parse_HTTPLiveStreaming(stream_t *s)
                 return VLC_EGENERIC;
             }
         }
-
-        /* Stream size (approximate) */
-        hls->size = hls_GetStreamSize(hls);
+        else
+        {
+            /* Stream size (approximate) */
+            hls->size = hls_GetStreamSize(hls);
+        }
 
         /* Can we cache files after playback */
         p_sys->b_cache = hls->b_cache;



More information about the vlc-commits mailing list