mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
fdsink: fix error message
Users should never see the term 'file descriptor', much less a file descriptor number, in an error message. Put that into the debug string instead and use the default error message.
This commit is contained in:
parent
6c1a1634b4
commit
536baf3d65
1 changed files with 2 additions and 3 deletions
|
@ -349,9 +349,8 @@ gst_fd_sink_check_fd (GstFdSink * fdsink, int fd)
|
||||||
|
|
||||||
invalid:
|
invalid:
|
||||||
{
|
{
|
||||||
GST_ELEMENT_ERROR (fdsink, RESOURCE, WRITE,
|
GST_ELEMENT_ERROR (fdsink, RESOURCE, WRITE, (NULL),
|
||||||
(_("File descriptor \"%d\" is not valid."), fd),
|
("File descriptor %d is not valid: %s", fd, g_strerror (errno)));
|
||||||
("%s", g_strerror (errno)));
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
not_seekable:
|
not_seekable:
|
||||||
|
|
Loading…
Reference in a new issue