From: Anthony Minessale Date: Sun, 14 Jun 2015 06:25:51 +0000 (-0500) Subject: FS-7656 not quite right X-Git-Tag: v1.6.2~494 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a647b42910323dddec9874e8153a064809233aa7;p=thirdparty%2Ffreeswitch.git FS-7656 not quite right --- diff --git a/src/mod/formats/mod_local_stream/mod_local_stream.c b/src/mod/formats/mod_local_stream/mod_local_stream.c index 76e1b81f97..f4c2c37a58 100644 --- a/src/mod/formats/mod_local_stream/mod_local_stream.c +++ b/src/mod/formats/mod_local_stream/mod_local_stream.c @@ -375,17 +375,18 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void if (source->total == 1) { switch_queue_push(source->context_list->video_q, img); - } else if (source->context_list) { - for (cp = source->context_list; cp && RUNNING; cp = cp->next) { - if (cp->video_q) { - imgcp = NULL; - switch_img_copy(img, &imgcp); - if (imgcp) { - switch_queue_push(cp->video_q, imgcp); + } else { + if (source->context_list) { + for (cp = source->context_list; cp && RUNNING; cp = cp->next) { + if (cp->video_q) { + imgcp = NULL; + switch_img_copy(img, &imgcp); + if (imgcp) { + switch_queue_push(cp->video_q, imgcp); + } } } } - } else { switch_img_free(&img); } }