mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-26 00:12:05 +08:00
OmxEncoder: set s->of to nullptr after close (#19814)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user