From b29fa06d20c604cf818ca360474a6cdc4730eac3 Mon Sep 17 00:00:00 2001 From: Mike Jerris Date: Tue, 9 Jul 2019 13:41:22 -0500 Subject: [PATCH] FS-11921: [core] add switch_img_data_url_png, fix build without libpng --- src/switch_core_video.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/switch_core_video.c b/src/switch_core_video.c index 54851cf8aa..32fc8d2bb9 100644 --- a/src/switch_core_video.c +++ b/src/switch_core_video.c @@ -3053,6 +3053,12 @@ SWITCH_DECLARE(switch_status_t) switch_img_write_png(switch_image_t *img, char* return SWITCH_STATUS_FALSE; } +SWITCH_DECLARE(switch_status_t) switch_img_data_url_png(switch_image_t *img, char **urlP) +{ + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "This function is not available, libpng not installed\n"); + return SWITCH_STATUS_FALSE; +} + #endif SWITCH_DECLARE(switch_status_t) switch_img_letterbox(switch_image_t *img, switch_image_t **imgP, int width, int height, const char *color)