FS-7513: don't seg when you have a mute png defined that can not be read

This commit is contained in:
Michael Jerris 2015-03-20 19:03:33 -04:00
parent 2171081963
commit 6d5590a76a
1 changed files with 3 additions and 1 deletions

View File

@ -1861,7 +1861,9 @@ static void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread
layer->mute_img = switch_img_read_png(imember->video_mute_png);
}
scale_and_patch(conference, layer, layer->mute_img, SWITCH_TRUE);
if (layer->mute_img) {
scale_and_patch(conference, layer, layer->mute_img, SWITCH_TRUE);
}
layer->mute_patched = 1;
}
}