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.
This commit is contained in:
Stefan Kost 2008-10-30 14:15:14 +00:00
parent d0b44d1578
commit 588ab506b9
3 changed files with 9 additions and 3 deletions

View file

@ -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):

View 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;

View 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;
}