[gst-cvs] gst-plugins-bad: shmpipe: Verify that accept succeeds
Olivier Crête
tester at kemper.freedesktop.org
Thu Jun 3 12:28:16 PDT 2010
Module: gst-plugins-bad
Branch: master
Commit: 1d893f81575895e24963a2ac17d975823f312592
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=1d893f81575895e24963a2ac17d975823f312592
Author: Olivier Crête <olivier.crete at collabora.co.uk>
Date: Tue Feb 2 17:35:26 2010 +0200
shmpipe: Verify that accept succeeds
---
gst/shm/shmpipe.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/gst/shm/shmpipe.c b/gst/shm/shmpipe.c
index 82a4c3c..817ed43 100644
--- a/gst/shm/shmpipe.c
+++ b/gst/shm/shmpipe.c
@@ -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)) {
More information about the Gstreamer-commits
mailing list