mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 21:44:51 +00:00
FS-10433: [mod_av,mod_conference] Crash when video recording fails to setup properly -- fix regression
This commit is contained in:
parent
db47792558
commit
23c275fd7f
@ -2244,7 +2244,7 @@ static switch_status_t av_file_close(switch_file_handle_t *handle)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (context->fc) {
|
if (context->fc) {
|
||||||
if (context->has_video) {
|
if (context->has_video && switch_test_flag(handle, SWITCH_FILE_FLAG_WRITE)) {
|
||||||
av_write_trailer(context->fc);
|
av_write_trailer(context->fc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user