srs icon indicating copy to clipboard operation
srs copied to clipboard

Bugfix srshls memleak

Open bluestn opened this issue 2 years ago • 1 comments

in function SrsHlsMuxer::update_config, the following code will cause writer whose type is IFileWriter* pointer be overrided, so need release writer before allocate a new instance for it.

if(hls_keys) {
    writer = new SrsEncFileWriter();
} else {
    writer = new SrsFileWriter();
}

bluestn avatar Jul 05 '22 13:07 bluestn

why this pr has so many files changed?

peipeiguo avatar Jul 12 '22 06:07 peipeiguo