[core] gen keyframe on new recording

This commit is contained in:
Anthony Minessale 2019-07-24 16:29:41 +00:00 committed by Andrey Volk
parent 1c37daba4c
commit a7c3c95bef

View File

@ -1448,6 +1448,7 @@ static switch_bool_t record_callback(switch_media_bug_t *bug, void *user_data, s
if (switch_core_file_has_video(rh->fh, SWITCH_TRUE)) {
switch_core_media_bug_set_media_params(bug, &rh->fh->mm);
switch_core_session_request_video_refresh(session);
switch_core_media_gen_key_frame(session);
}
}
}