[f-spot/taglib-metadata] Make sure sidecars are correctly committed.



commit c8f4a4cde14d4ee70866f0ee433ab2e979b64e7f
Author: Ruben Vermeersch <ruben savanne be>
Date:   Fri Jul 2 23:04:11 2010 +0200

    Make sure sidecars are correctly committed.

 src/Utils/SidecarXmpExtensions.cs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/Utils/SidecarXmpExtensions.cs b/src/Utils/SidecarXmpExtensions.cs
index 9b4af06..ed8f53c 100644
--- a/src/Utils/SidecarXmpExtensions.cs
+++ b/src/Utils/SidecarXmpExtensions.cs
@@ -34,10 +34,12 @@ namespace FSpot.Utils
                 return;
 
             var xmp = xmp_tag.Render ();
+
             using (var stream = resource.WriteStream) {
                 using (var writer = new StreamWriter (stream)) {
                     writer.Write (xmp);
                 }
+                resource.CloseStream (stream);
             }
         }
     }



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