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:
Tim-Philipp Müller 2009-06-18 11:27:21 +01:00
parent 6c1a1634b4
commit 536baf3d65

View file

@ -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: