winlin

fix bug of hls, close the muxer when segment finished

@@ -617,6 +617,9 @@ int SrsHLS::reopen() @@ -617,6 +617,9 @@ int SrsHLS::reopen()
617 if (current) { 617 if (current) {
618 current->duration = (stream_dts - current->segment_start_dts) / 90000.0; 618 current->duration = (stream_dts - current->segment_start_dts) / 90000.0;
619 segments.push_back(current); 619 segments.push_back(current);
  620 +
  621 + // close the muxer of finished segment.
  622 + srs_freep(current->muxer);
620 current = NULL; 623 current = NULL;
621 624
622 // the segments to remove 625 // the segments to remove