Skip to content

Commit

Permalink
For #2136: HLS: Delete the writer when update config.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Aug 19, 2022
1 parent 54a457e commit db8872a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trunk/src/app/srs_app_hls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ srs_error_t SrsHlsMuxer::update_config(SrsRequest* r, string entry_prefix,
}
}

srs_freep(writer);
if(hls_keys) {
writer = new SrsEncFileWriter();
} else {
Expand Down

0 comments on commit db8872a

Please sign in to comment.