[gimp/gimpmetadata-new-wip] plug-in: fix loading metadata in webp-plugin
- From: Hartmut Kuhse <hartmutkuhse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimpmetadata-new-wip] plug-in: fix loading metadata in webp-plugin
- Date: Thu, 5 Jan 2017 18:18:31 +0000 (UTC)
commit 61d3c6f93f9d2f1db30124248a1c58fb50498c7e
Author: Hartmut Kuhse <hk_priv gmx de>
Date: Thu Jan 5 19:17:36 2017 +0100
plug-in: fix loading metadata in webp-plugin
plug-ins/file-webp/file-webp-load.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/file-webp/file-webp-load.c b/plug-ins/file-webp/file-webp-load.c
index 72372c3..563054f 100644
--- a/plug-ins/file-webp/file-webp-load.c
+++ b/plug-ins/file-webp/file-webp-load.c
@@ -39,7 +39,7 @@
#include "libgimp/stdplugins-intl.h"
-static void
+static gint32
create_layer (gint32 image_ID,
uint8_t *layer_data,
gint32 position,
@@ -78,6 +78,7 @@ load_image (const gchar *filename,
GError **error)
{
uint8_t *indata = NULL;
+ gint32 layer;
gsize indatalen;
gint width;
gint height;
@@ -146,8 +147,8 @@ load_image (const gchar *filename,
if (! outdata)
return -1;
- create_layer (image_ID, outdata, 0, _("Background"),
- width, height);
+ layer = create_layer (image_ID, outdata, 0, _("Background"),
+ width, height);
/* Free the image data */
free (outdata);
@@ -268,7 +269,7 @@ load_image (const gchar *filename,
file, NULL);
if (metadata)
{
- gimp_image_metadata_load_finish (image_ID, "image/webp",
+ gimp_image_metadata_load_finish (image_ID, layer, "image/webp",
metadata, GIMP_METADATA_LOAD_ALL,
interactive);
g_object_unref (metadata);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]