fix bug of hls, close the muxer when segment finished

pull/133/head
winlin 11 years ago
parent 00ec634d56
commit 758dff0e97

@ -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

Loading…
Cancel
Save