diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 0a63c44970..3f5249afb4 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -5255,7 +5255,7 @@ static void *SWITCH_THREAD_FUNC video_write_thread(switch_thread_t *thread, void switch_core_media_gen_key_frame(session); - if (mh->video_write_fh && smh->video_write_fh->mm.source_fps) { + if (smh->video_write_fh && smh->video_write_fh->mm.source_fps) { fps = (int) smh->video_write_fh->mm.source_fps; } else { fps = video_globals.fps;