mirror of
https://github.com/ossrs/srs.git
synced 2025-02-12 19:31:53 +00:00
fix bug of hls, close the muxer when segment finished
This commit is contained in:
parent
00ec634d56
commit
758dff0e97
1 changed files with 3 additions and 0 deletions
|
@ -617,6 +617,9 @@ int SrsHLS::reopen()
|
||||||
if (current) {
|
if (current) {
|
||||||
current->duration = (stream_dts - current->segment_start_dts) / 90000.0;
|
current->duration = (stream_dts - current->segment_start_dts) / 90000.0;
|
||||||
segments.push_back(current);
|
segments.push_back(current);
|
||||||
|
|
||||||
|
// close the muxer of finished segment.
|
||||||
|
srs_freep(current->muxer);
|
||||||
current = NULL;
|
current = NULL;
|
||||||
|
|
||||||
// the segments to remove
|
// the segments to remove
|
||||||
|
|
Loading…
Reference in a new issue