From: Seven Du Date: Sat, 4 Jul 2015 06:09:52 +0000 (+0800) Subject: FS-7777 #resolv X-Git-Tag: v1.6.2~334 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08c7a1de344fbe7b061c9da06754a6ed60b3aa66;p=thirdparty%2Ffreeswitch.git FS-7777 #resolv --- diff --git a/src/mod/formats/mod_imagick/mod_imagick.c b/src/mod/formats/mod_imagick/mod_imagick.c index 346e5633d2..4c04b91cdf 100644 --- a/src/mod/formats/mod_imagick/mod_imagick.c +++ b/src/mod/formats/mod_imagick/mod_imagick.c @@ -294,6 +294,10 @@ static switch_status_t imagick_file_read_video(switch_file_handle_t *handle, swi switch_image_t *dup = NULL; switch_status_t status; + if ((flags & SVR_CHECK)) { + return SWITCH_STATUS_BREAK; + } + if (!context->images || !context->samples) { return SWITCH_STATUS_FALSE; } diff --git a/src/mod/formats/mod_png/mod_png.c b/src/mod/formats/mod_png/mod_png.c index 7007e04dcf..01bd93bea5 100644 --- a/src/mod/formats/mod_png/mod_png.c +++ b/src/mod/formats/mod_png/mod_png.c @@ -178,7 +178,11 @@ static switch_status_t png_file_read_video(switch_file_handle_t *handle, switch_ { png_file_context_t *context = (png_file_context_t *)handle->private_info; switch_image_t *dup = NULL; - + + if ((flags & SVR_CHECK)) { + return SWITCH_STATUS_BREAK; + } + if (!context->img || !context->samples) { return SWITCH_STATUS_FALSE; }