From 43de02d25a393c4636a58f986659c5b87fddea9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Tue, 3 Nov 2009 20:03:24 -0500 Subject: [PATCH] shm: Print details on errors --- gst/shm/shmpipe.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gst/shm/shmpipe.c b/gst/shm/shmpipe.c index 7a6156ce7e..6fa2ce5b33 100644 --- a/gst/shm/shmpipe.c +++ b/gst/shm/shmpipe.c @@ -703,12 +703,16 @@ sp_writer_accept_client (ShmPipe * self) 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)) + if (!send_command (fd, &cb, COMMAND_NEW_SHM_AREA, self->shm_area->id)) { + fprintf (stderr, "Sending new shm area failed: %s", strerror (errno)); goto error; + } if (send (fd, self->shm_area->shm_area_name, pathlen, MSG_NOSIGNAL) != - pathlen) + pathlen) { + fprintf (stderr, "Sending new shm area path failed: %s", strerror (errno)); goto error; + } client = spalloc_new (ShmClient); client->fd = fd;