]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11921: [core] add switch_img_data_url_png, fix build without libpng
authorMike Jerris <mike@signalwire.com>
Tue, 9 Jul 2019 18:41:22 +0000 (13:41 -0500)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Jul 2019 20:51:20 +0000 (00:51 +0400)
src/switch_core_video.c

index 54851cf8aacc9127be6037e838752cf1483d0048..32fc8d2bb9d9b0d023ca6cfd9d3ae551f0cc7db9 100644 (file)
@@ -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)