[f-spot/FSPOT_0_6_0_STABLE] Avoid locking on loading tiffs



commit 9302d3cd2ffdc75977bb5aaaa2474e572260fad3
Author: Stephane Delcroix <stephane delcroix org>
Date:   Fri Sep 25 12:03:27 2009 +0200

    Avoid locking on loading tiffs
    
    the gdk_pixbuf_loader was stuck in a ig lock while loading tiff images. close()ing the loader when we're done reading the stream avoids it.
    
    fixes bgo #592278.

 src/Loaders/GdkImageLoader.cs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/Loaders/GdkImageLoader.cs b/src/Loaders/GdkImageLoader.cs
index ffd7273..3095be3 100644
--- a/src/Loaders/GdkImageLoader.cs
+++ b/src/Loaders/GdkImageLoader.cs
@@ -158,6 +158,7 @@ namespace FSpot.Loaders {
 			lock (sync_handle) {
 				if (byte_read == 0) {
 					image_stream.Close ();
+					Close ();
 					loading = false;
 					notify_completed = true;
 				} else {



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