mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36: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:
|
||||
{
|
||||
GST_ELEMENT_ERROR (fdsink, RESOURCE, WRITE,
|
||||
(_("File descriptor \"%d\" is not valid."), fd),
|
||||
("%s", g_strerror (errno)));
|
||||
GST_ELEMENT_ERROR (fdsink, RESOURCE, WRITE, (NULL),
|
||||
("File descriptor %d is not valid: %s", fd, g_strerror (errno)));
|
||||
return FALSE;
|
||||
}
|
||||
not_seekable:
|
||||
|
|
Loading…
Reference in a new issue