mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
queue2: warn if we can't remove our temporary file
It's not fatal though, so do not error out. Coverity 1037121
This commit is contained in:
parent
b9313afc75
commit
fe7925373d
1 changed files with 6 additions and 2 deletions
|
@ -1523,8 +1523,12 @@ gst_queue2_close_temp_location_file (GstQueue2 * queue)
|
|||
fflush (queue->temp_file);
|
||||
fclose (queue->temp_file);
|
||||
|
||||
if (queue->temp_remove)
|
||||
remove (queue->temp_location);
|
||||
if (queue->temp_remove) {
|
||||
if (remove (queue->temp_location) < 0) {
|
||||
GST_WARNING_OBJECT (queue, "Failed to remove temporary file %s: %s",
|
||||
queue->temp_location, strerror (errno));
|
||||
}
|
||||
}
|
||||
|
||||
queue->temp_file = NULL;
|
||||
clean_ranges (queue);
|
||||
|
|
Loading…
Reference in a new issue