[vlc-devel] [PATCH 34/48] hls: Fixing potential crash if there's no more segment to download.
Hugo Beauzée-Luyssen
beauze.h at gmail.com
Mon Jan 9 16:16:43 CET 2012
---
modules/stream_filter/httplive.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 69e5b85..431eb65 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -1533,7 +1533,8 @@ static void* hls_Thread(void *p_this)
vlc_mutex_lock(&hls->lock);
segment_t *segment = segment_GetSegment(hls, p_sys->download.segment);
- msg_Dbg(s, "Downloading segment %d from stream %d (aka %s)", p_sys->download.segment, p_sys->download.stream, segment->uri);
+ if ( segment )
+ msg_Dbg(s, "Downloading segment %d from stream %d (aka %s)", p_sys->download.segment, p_sys->download.stream, segment->uri);
vlc_mutex_unlock(&hls->lock);
--
1.7.8.3
More information about the vlc-devel
mailing list