mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
parent
012b5b8d4a
commit
1a42aaad47
1 changed files with 4 additions and 1 deletions
|
@ -83,7 +83,10 @@ cam_sw_client_open (CamSwClient * client, const char *sock_path)
|
|||
strncpy (addr.sun_path, sock_path, sizeof (addr.sun_path));
|
||||
|
||||
GST_INFO ("connecting to softcam socket: %s", sock_path);
|
||||
client->sock = socket (PF_UNIX, SOCK_STREAM, 0);
|
||||
if (client->sock = socket (PF_UNIX, SOCK_STREAM, 0)) {
|
||||
GST_ERROR ("Failed to create a socket, error : %s", strerror (errno));
|
||||
return FALSE;
|
||||
}
|
||||
ret =
|
||||
connect (client->sock, (struct sockaddr *) &addr,
|
||||
sizeof (struct sockaddr_un));
|
||||
|
|
Loading…
Reference in a new issue