]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] gen keyframe on new recording
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 24 Jul 2019 16:29:41 +0000 (16:29 +0000)
committerAndrey Volk <andywolk@gmail.com>
Sat, 23 Oct 2021 19:00:30 +0000 (22:00 +0300)
src/switch_ivr_async.c

index 726073c7a38deb075d38f91ccfe0fdffdf17a43a..d0e8a9e0542e2f32e97401cd360756cc76255f1b 100644 (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);
                                }
                        }
                }