summaryrefslogtreecommitdiff
path: root/v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c
diff options
context:
space:
mode:
authorhans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain>2009-08-20 11:28:51 +0200
committerhans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain>2009-08-20 11:28:51 +0200
commit571db9ea44fcb35c1bc260eb98f3d085de5d132a (patch)
tree294478ea0c8c69409a2644a8284035a3d162cc7b /v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c
parentaa2c3496f93b8a3765dabc4c1159129a874c217c (diff)
downloadmediapointer-dvb-s2-571db9ea44fcb35c1bc260eb98f3d085de5d132a.tar.gz
mediapointer-dvb-s2-571db9ea44fcb35c1bc260eb98f3d085de5d132a.tar.bz2
libv4l: Change controls shm segment name to include the username
From: Gregor Jasny <gjasny@googlemail.com> Change controls shm segment name to include the username, as it is only writable by the user (this means libv4l controls are per user) Priority: normal Signed-off-by: Gregor Jasny <gjasny@googlemail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c')
-rw-r--r--v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c b/v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c
index f5e9d9762..be4553cc7 100644
--- a/v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c
+++ b/v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c
@@ -95,8 +95,10 @@ struct v4lconvert_data *v4lconvert_create(int fd)
processing controls without a performance impact. */
int always_needs_conversion = 1;
- if (!data)
+ if (!data) {
+ fprintf(stderr, "libv4lconvert: error: out of memory!\n");
return NULL;
+ }
data->fd = fd;
data->decompress_pid = -1;