mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
multifilesink: post better error message when we run out of disk space
Map write errno ENOSPC to GST_RESOURCE_ERROR_NO_SPACE_LEFT.
This commit is contained in:
parent
2be912cb45
commit
b82d9ca240
1 changed files with 9 additions and 2 deletions
|
@ -656,8 +656,15 @@ write_error:
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
stdio_write_error:
|
stdio_write_error:
|
||||||
GST_ELEMENT_ERROR (multifilesink, RESOURCE, WRITE,
|
switch (errno) {
|
||||||
("Error while writing to file."), (NULL));
|
case ENOSPC:
|
||||||
|
GST_ELEMENT_ERROR (multifilesink, RESOURCE, NO_SPACE_LEFT,
|
||||||
|
("Error while writing to file."), ("%s", g_strerror (errno)));
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
GST_ELEMENT_ERROR (multifilesink, RESOURCE, WRITE,
|
||||||
|
("Error while writing to file."), ("%s", g_strerror (errno)));
|
||||||
|
}
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue