diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2006-09-02 14:28:55 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2006-09-02 14:28:55 +0000 |
commit | 97a46ffce6855985e48236e90a1a6dec53a8c527 (patch) | |
tree | f8e50c52afadf3ce02bd9cf0e256fd27d830b911 /sys/v4l2/v4l2_calls.c | |
parent | 622eddfbfd5d1c68c81a68a20971b81aeabb9c53 (diff) | |
download | gst-plugins-bad-97a46ffce6855985e48236e90a1a6dec53a8c527.tar.gz gst-plugins-bad-97a46ffce6855985e48236e90a1a6dec53a8c527.tar.bz2 gst-plugins-bad-97a46ffce6855985e48236e90a1a6dec53a8c527.zip |
sys/v4l2/: Cleanup error messages and unify header comments
Original commit message from CVS:
* sys/v4l2/gstv4l2.c:
* sys/v4l2/gstv4l2colorbalance.c:
* sys/v4l2/gstv4l2colorbalance.h:
* sys/v4l2/gstv4l2object.c:
* sys/v4l2/gstv4l2object.h:
* sys/v4l2/gstv4l2src.c:
* sys/v4l2/gstv4l2src.h:
* sys/v4l2/gstv4l2tuner.c:
* sys/v4l2/gstv4l2tuner.h:
* sys/v4l2/gstv4l2xoverlay.c: (gst_v4l2_xoverlay_open):
* sys/v4l2/gstv4l2xoverlay.h:
* sys/v4l2/v4l2_calls.c: (gst_v4l2_get_capabilities),
(gst_v4l2_open):
* sys/v4l2/v4l2_calls.h:
* sys/v4l2/v4l2src_calls.c: (gst_v4l2src_queue_frame),
(gst_v4l2src_capture_init):
* sys/v4l2/v4l2src_calls.h:
Cleanup error messages and unify header comments
Diffstat (limited to 'sys/v4l2/v4l2_calls.c')
-rw-r--r-- | sys/v4l2/v4l2_calls.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c index c74e5be0..c9193697 100644 --- a/sys/v4l2/v4l2_calls.c +++ b/sys/v4l2/v4l2_calls.c @@ -1,6 +1,9 @@ -/* G-Streamer generic V4L2 element - generic V4L2 calls handling +/* GStreamer + * * Copyright (C) 2002 Ronald Bultje <rbultje@ronald.bitfreak.net> - * Copyright (C) 2006 Edgard Lima <edgard.lima@indt.org.br> + * 2006 Edgard Lima <edgard.lima@indt.org.br> + * + * v4l2_calls.c - generic V4L2 calls handling * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -55,7 +58,7 @@ gst_v4l2_get_capabilities (GstV4l2Object * v4l2object) if (ioctl (v4l2object->video_fd, VIDIOC_QUERYCAP, &(v4l2object->vcap)) < 0) { GST_ELEMENT_ERROR (v4l2object->element, RESOURCE, SETTINGS, - (_("Error getting capabilities '%s': %d, %s. It isn't a v4l2 driver. Check if it is a v4l1 driver\n"), v4l2object->videodev, errno, strerror (errno)), GST_ERROR_SYSTEM); + (_("Error getting capabilities for device '%s': %s. It isn't a v4l2 driver. Check if it is a v4l1 driver\n"), v4l2object->videodev, g_strerror (errno)), GST_ERROR_SYSTEM); return FALSE; } @@ -365,14 +368,14 @@ gst_v4l2_open (GstV4l2Object * v4l2object) /* check if it is a device */ if (-1 == stat (v4l2object->videodev, &st)) { GST_ELEMENT_ERROR (v4l2object->element, RESOURCE, NOT_FOUND, - (_("Cannot identify '%s': %d, %s\n"), - v4l2object->videodev, errno, strerror (errno)), GST_ERROR_SYSTEM); + (_("Cannot identify device '%s': %s\n"), v4l2object->videodev, + g_strerror (errno)), GST_ERROR_SYSTEM); goto error; } if (!S_ISCHR (st.st_mode)) { GST_ELEMENT_ERROR (v4l2object->element, RESOURCE, NOT_FOUND, - (_("It isn't a device '%s': %d, %s\n"), - v4l2object->videodev, errno, strerror (errno)), GST_ERROR_SYSTEM); + (_("This isn't a device '%s': %s\n"), v4l2object->videodev, + g_strerror (errno)), GST_ERROR_SYSTEM); goto error; } |