FS-7777 #resolv

This commit is contained in:
Seven Du 2015-07-04 14:09:52 +08:00
parent a817701824
commit 08c7a1de34
2 changed files with 9 additions and 1 deletions

View File

@ -294,6 +294,10 @@ static switch_status_t imagick_file_read_video(switch_file_handle_t *handle, swi
switch_image_t *dup = NULL; switch_image_t *dup = NULL;
switch_status_t status; switch_status_t status;
if ((flags & SVR_CHECK)) {
return SWITCH_STATUS_BREAK;
}
if (!context->images || !context->samples) { if (!context->images || !context->samples) {
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;
} }

View File

@ -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; png_file_context_t *context = (png_file_context_t *)handle->private_info;
switch_image_t *dup = NULL; switch_image_t *dup = NULL;
if ((flags & SVR_CHECK)) {
return SWITCH_STATUS_BREAK;
}
if (!context->img || !context->samples) { if (!context->img || !context->samples) {
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;
} }