gst/: Use g_unlink() as none of these are directories.
authorStefan Kost <ensonic@users.sourceforge.net>
Thu, 30 Oct 2008 14:15:14 +0000 (14:15 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Thu, 30 Oct 2008 14:15:14 +0000 (14:15 +0000)
Original commit message from CVS:
* gst/gstregistrybinary.c:
* gst/gstregistryxml.c:
Use g_unlink() as none of these are directories.

ChangeLog
gst/gstregistrybinary.c
gst/gstregistryxml.c

index 7bb3ba9..c75dde0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-30  Stefan Kost  <ensonic@users.sf.net>
+
+       * gst/gstregistrybinary.c:
+       * gst/gstregistryxml.c:
+         Use g_unlink() as none of these are directories.
+
 2008-10-29  Wim Taymans  <wim.taymans@collabora.co.uk>
 
        * gst/gstpipeline.c: (gst_pipeline_provide_clock_func):
index 5285f4c..51b0e1b 100644 (file)
@@ -350,7 +350,7 @@ gst_registry_binary_cache_finish (GstRegistry * registry,
 
 fail_after_close:
   {
-    g_remove (cache->tmp_location);
+    g_unlink (cache->tmp_location);
     g_free (cache->tmp_location);
     g_free (cache);
     return FALSE;
index 12d27fc..c2eb3ce 100644 (file)
@@ -921,7 +921,7 @@ gst_registry_xml_write_cache (GstRegistry * registry, const char *location)
 
   if (g_file_test (tmp_location, G_FILE_TEST_EXISTS)) {
 #ifdef WIN32
-    g_remove (location);
+    g_unlink (location);
 #endif
     if (g_rename (tmp_location, location) < 0)
       goto rename_failed;
@@ -941,7 +941,7 @@ fail:
   }
 fail_after_close:
   {
-    g_remove (tmp_location);
+    g_unlink (tmp_location);
     g_free (tmp_location);
     return FALSE;
   }