From 1ec7432a85f3d6f3f40855a02dcb6ec6b973951a Mon Sep 17 00:00:00 2001 From: ellson Date: Wed, 3 Oct 2007 22:47:54 +0000 Subject: [PATCH] gdk_pixbuf to use gvdevice_write() --- plugin/gdk_pixbuf/gvdevice_gdk_pixbuf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin/gdk_pixbuf/gvdevice_gdk_pixbuf.c b/plugin/gdk_pixbuf/gvdevice_gdk_pixbuf.c index b47b20356..f897ae8be 100644 --- a/plugin/gdk_pixbuf/gvdevice_gdk_pixbuf.c +++ b/plugin/gdk_pixbuf/gvdevice_gdk_pixbuf.c @@ -59,10 +59,12 @@ argb2rgba ( unsigned int width, unsigned int height, unsigned char *data) } } +extern size_t gvdevice_write(GVJ_t * job, char *s, unsigned int len); + static gboolean writer ( const gchar *buf, gsize count, GError **error, gpointer data) { - if (count == fwrite(buf, 1, count, (FILE *)data)) + if (count == gvdevice_write((GVJ_t *)data, (char*)buf, count)) return TRUE; return FALSE; } @@ -104,7 +106,7 @@ static void gdk_pixbuf_format(GVJ_t * job) NULL // destroy_fn_data ); - gdk_pixbuf_save_to_callback(pixbuf, writer, job->output_file, format_str, NULL, NULL); + gdk_pixbuf_save_to_callback(pixbuf, writer, job, format_str, NULL, NULL); gdk_pixbuf_unref(pixbuf); } -- 2.40.0