mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
d0b44d1578
commit
588ab506b9
3 changed files with 9 additions and 3 deletions
|
@ -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):
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue