From 588ab506b9cb13fef4b081b2c250a83d67c90feb Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 30 Oct 2008 14:15:14 +0000 Subject: [PATCH] gst/: Use g_unlink() as none of these are directories. Original commit message from CVS: * gst/gstregistrybinary.c: * gst/gstregistryxml.c: Use g_unlink() as none of these are directories. --- ChangeLog | 6 ++++++ gst/gstregistrybinary.c | 2 +- gst/gstregistryxml.c | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7bb3ba9bae..c75dde05fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-10-30 Stefan Kost + + * gst/gstregistrybinary.c: + * gst/gstregistryxml.c: + Use g_unlink() as none of these are directories. + 2008-10-29 Wim Taymans * gst/gstpipeline.c: (gst_pipeline_provide_clock_func): diff --git a/gst/gstregistrybinary.c b/gst/gstregistrybinary.c index 5285f4c6f6..51b0e1b3d8 100644 --- a/gst/gstregistrybinary.c +++ b/gst/gstregistrybinary.c @@ -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; diff --git a/gst/gstregistryxml.c b/gst/gstregistryxml.c index 12d27fc9b0..c2eb3ced36 100644 --- a/gst/gstregistryxml.c +++ b/gst/gstregistryxml.c @@ -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; }