]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9587 #resolve [CV can crash if image is null]
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 28 Sep 2016 21:13:35 +0000 (16:13 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 28 Sep 2016 21:13:35 +0000 (16:13 -0500)
src/mod/applications/mod_cv/mod_cv.cpp

index ac643a3ff6dd176444c63caab0ee07f61bfaa301..dd41719f975ddcead6ae2bc733bb6285135064fd 100644 (file)
@@ -836,7 +836,7 @@ static switch_status_t video_thread_callback(switch_core_session_t *session, swi
             int shape_w, shape_h;
             int cx, cy;
 
-            if (context->overlay[i]->abs == POS_NONE && !context->detect_event && !context->shape[0].cx) {
+            if (!overlay->png || context->overlay[i]->abs == POS_NONE && !context->detect_event && !context->shape[0].cx) {
                 continue;
             }