OmxEncoder: set s->of to nullptr after close (#19814)

albatross
Dean Lee 2021-01-20 06:28:03 +08:00 committed by GitHub
parent 2e64049ea4
commit a5be02c2c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -574,6 +574,7 @@ void OmxEncoder::encoder_close() {
avformat_free_context(this->ofmt_ctx);
} else {
fclose(this->of);
this->of = nullptr;
}
unlink(this->lock_path);
}