[libmediaart] extract: Fix two compile warnings



commit 728913ae639952123fca8f7bf6d620df7b3acf87
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Oct 7 18:01:22 2013 +0200

    extract: Fix two compile warnings

 libmediaart/extract.c       |    2 +-
 libmediaart/extractpixbuf.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libmediaart/extract.c b/libmediaart/extract.c
index 9ab8e1c..43802c3 100644
--- a/libmediaart/extract.c
+++ b/libmediaart/extract.c
@@ -161,7 +161,7 @@ file_get_checksum_if_exists (GChecksumType   checksum_type,
                retval = TRUE;
 
                if (check_jpeg) {
-                       if (g_input_stream_read_all (G_INPUT_STREAM (stream), buffer, 3, &rsize, NULL, NULL)) 
{
+                       if (g_input_stream_read_all (G_INPUT_STREAM (stream), buffer, 3, (gsize *) &rsize, 
NULL, NULL)) {
                                if (rsize >= 3 && buffer[0] == 0xff && buffer[1] == 0xd8 && buffer[2] == 
0xff) {
                                        if (is_jpeg) {
                                                *is_jpeg = TRUE;
diff --git a/libmediaart/extractpixbuf.c b/libmediaart/extractpixbuf.c
index df8a0f8..2f823fc 100644
--- a/libmediaart/extractpixbuf.c
+++ b/libmediaart/extractpixbuf.c
@@ -103,7 +103,7 @@ media_art_buffer_to_jpeg (const unsigned char *buffer,
             g_strcmp0 (buffer_mime, "JPG") == 0) &&
            (buffer && len > 2 && buffer[0] == 0xff && buffer[1] == 0xd8 && buffer[2] == 0xff)) {
                g_debug ("Saving album art using raw data as uri:'%s'", target);
-               g_file_set_contents (target, buffer, (gssize) len, NULL);
+               g_file_set_contents (target, (const gchar *) buffer, (gssize) len, NULL);
        } else {
                GdkPixbuf *pixbuf;
                GdkPixbufLoader *loader;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]