[Xfce4-commits] [xfce/tumbler] 02/02: Add comments for the previous revert.

noreply at xfce.org noreply at xfce.org
Mon Jul 28 18:19:49 CEST 2014


This is an automated email from the git hooks/post-receive script.

nick pushed a commit to branch master
in repository xfce/tumbler.

commit edce3c603bdb90ac93305c15875169f54204ec4f
Author: Nick Schermer <nick at xfce.org>
Date:   Mon Jul 28 18:17:44 2014 +0200

    Add comments for the previous revert.
---
 plugins/pixbuf-thumbnailer/pixbuf-thumbnailer.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer.c b/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer.c
index 9c64659..14c85cc 100644
--- a/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer.c
+++ b/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer.c
@@ -149,6 +149,7 @@ pixbuf_thumbnailer_new_from_stream (GInputStream      *stream,
   guchar           buffer[65536];
 
   g_return_val_if_fail (G_IS_INPUT_STREAM (stream), NULL);
+  g_return_val_if_fail (error == NULL || *error == NULL, NULL);
 
   /* prepare the loader */
   loader = gdk_pixbuf_loader_new ();
@@ -164,7 +165,7 @@ pixbuf_thumbnailer_new_from_stream (GInputStream      *stream,
       if (n_read < 0)
         {
           result = FALSE;
-          error = NULL;
+          error = NULL; /* ignore further errors in this function */
           break;
         }
 
@@ -174,7 +175,7 @@ pixbuf_thumbnailer_new_from_stream (GInputStream      *stream,
       if (!gdk_pixbuf_loader_write (loader, buffer, n_read, error))
         {
           result = FALSE;
-          error = NULL;
+          error = NULL; /* ignore further errors in this function */
           break;
         }
     }
@@ -182,7 +183,7 @@ pixbuf_thumbnailer_new_from_stream (GInputStream      *stream,
   if (!gdk_pixbuf_loader_close (loader, error))
     {
       result = FALSE;
-      error = NULL;
+      error = NULL; /* ignore further errors in this function */
     }
 
   if (result)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list