fdsink: fix error message
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 18 Jun 2009 10:27:21 +0000 (11:27 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 18 Jun 2009 10:39:26 +0000 (11:39 +0100)
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.

plugins/elements/gstfdsink.c

index 9cd84a3..96a2fc5 100644 (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: