From: Stefan Kost Date: Thu, 30 Oct 2008 14:15:14 +0000 (+0000) Subject: gst/: Use g_unlink() as none of these are directories. X-Git-Tag: GIT_CONVERSION~98 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=588ab506b9cb13fef4b081b2c250a83d67c90feb;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/ChangeLog b/ChangeLog index 7bb3ba9..c75dde0 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 5285f4c..51b0e1b 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 12d27fc..c2eb3ce 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; }