]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9292 #resolve [Core dump playing videos or show images]
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 22 Jun 2016 21:39:43 +0000 (16:39 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 22 Jun 2016 21:39:43 +0000 (16:39 -0500)
src/switch_core_media.c

index d909c09ce2c66a8136c01fd5026ffb5bbe7454be..0a63c449707f546f25f32072c86c8541e17b01a5 100644 (file)
@@ -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 (smh->video_write_fh->mm.source_fps) {
+       if (mh->video_write_fh && smh->video_write_fh->mm.source_fps) {
                fps = (int) smh->video_write_fh->mm.source_fps;
        } else {
                fps = video_globals.fps;