mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
shmpipe: Verify that accept succeeds
This commit is contained in:
parent
d2731d689d
commit
1d893f8157
1 changed files with 5 additions and 0 deletions
|
@ -711,6 +711,11 @@ sp_writer_accept_client (ShmPipe * self)
|
|||
|
||||
fd = accept (self->main_socket, NULL, NULL);
|
||||
|
||||
if (fd < 0) {
|
||||
fprintf (stderr, "Could not client connection");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
cb.payload.new_shm_area.size = self->shm_area->shm_area_len;
|
||||
cb.payload.new_shm_area.path_size = pathlen;
|
||||
if (!send_command (fd, &cb, COMMAND_NEW_SHM_AREA, self->shm_area->id)) {
|
||||
|
|
Loading…
Reference in a new issue