use real error

Original commit message from CVS:
use real error
This commit is contained in:
Thomas Vander Stichele 2004-08-09 19:27:04 +00:00
parent 26141ac67e
commit d5fccfe4e7

View file

@ -1200,7 +1200,9 @@ gst_multifdsink_init_send (GstMultiFdSink * this)
FD_ZERO (&this->writefds);
if (socketpair (PF_UNIX, SOCK_STREAM, 0, CONTROL_SOCKETS (this)) < 0) {
perror ("creating socket pair");
GST_ELEMENT_ERROR (this, RESOURCE, OPEN_READ_WRITE, (NULL),
GST_ERROR_SYSTEM);
return FALSE;
}
FD_SET (READ_SOCKET (this), &this->readfds);
fcntl (READ_SOCKET (this), F_SETFL, O_NONBLOCK);