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:
Vincent Penquerc'h 2014-04-07 17:33:34 +01:00
parent b9313afc75
commit fe7925373d

View file

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