summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-11-03 20:03:24 -0500
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>2010-06-03 15:27:41 -0400
commit43de02d25a393c4636a58f986659c5b87fddea9e (patch)
tree75d3ce87a4d6d12a9a7d0eb422c35656a8e0559b /gst
parentf97d02375bc2a6411021b22d041274ee0fd271f8 (diff)
downloadgstreamer-plugins-bad-43de02d25a393c4636a58f986659c5b87fddea9e.tar.gz
shm: Print details on errors
Diffstat (limited to 'gst')
-rw-r--r--gst/shm/shmpipe.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gst/shm/shmpipe.c b/gst/shm/shmpipe.c
index 7a6156ce7..6fa2ce5b3 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;