OmxEncoder: set s->of to nullptr after close (#19814)
parent
2e64049ea4
commit
a5be02c2c7
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue