From 758dff0e97d43d955b9d615a21b3a24a453dc92d Mon Sep 17 00:00:00 2001 From: winlin Date: Tue, 26 Nov 2013 17:56:55 +0800 Subject: [PATCH] fix bug of hls, close the muxer when segment finished --- trunk/src/core/srs_core_hls.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trunk/src/core/srs_core_hls.cpp b/trunk/src/core/srs_core_hls.cpp index b34a3022f..050711056 100644 --- a/trunk/src/core/srs_core_hls.cpp +++ b/trunk/src/core/srs_core_hls.cpp @@ -617,6 +617,9 @@ int SrsHLS::reopen() if (current) { current->duration = (stream_dts - current->segment_start_dts) / 90000.0; segments.push_back(current); + + // close the muxer of finished segment. + srs_freep(current->muxer); current = NULL; // the segments to remove