mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 16:52:42 +00:00
use real error
Original commit message from CVS: use real error
This commit is contained in:
parent
26141ac67e
commit
d5fccfe4e7
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue