summaryrefslogtreecommitdiff
path: root/libavdevice/v4l2.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-05-24 07:23:29 +0200
committerAnton Khirnov <anton@khirnov.net>2011-05-25 15:55:47 +0200
commit3d2a418605b23b475b4217a93e8e60660154e198 (patch)
tree7251bc5239213a8c6e87cb93438bf87d395345f5 /libavdevice/v4l2.c
parenta02fd06ab76c0abd7ef32f332a08177e6014b3a8 (diff)
v4l2: reindent.
Diffstat (limited to 'libavdevice/v4l2.c')
-rw-r--r--libavdevice/v4l2.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 59af2c83ec..0385a2c6c0 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -456,21 +456,21 @@ static int v4l2_set_parameters(AVFormatContext *s1, AVFormatParameters *ap)
if (ap->channel > 0)
s->channel = ap->channel;
- /* set tv video input */
- memset (&input, 0, sizeof (input));
- input.index = s->channel;
- if (ioctl(s->fd, VIDIOC_ENUMINPUT, &input) < 0) {
- av_log(s1, AV_LOG_ERROR, "The V4L2 driver ioctl enum input failed:\n");
- return AVERROR(EIO);
- }
+ /* set tv video input */
+ memset (&input, 0, sizeof (input));
+ input.index = s->channel;
+ if (ioctl(s->fd, VIDIOC_ENUMINPUT, &input) < 0) {
+ av_log(s1, AV_LOG_ERROR, "The V4L2 driver ioctl enum input failed:\n");
+ return AVERROR(EIO);
+ }
- av_log(s1, AV_LOG_DEBUG, "The V4L2 driver set input_id: %d, input: %s\n",
- s->channel, input.name);
- if (ioctl(s->fd, VIDIOC_S_INPUT, &input.index) < 0) {
- av_log(s1, AV_LOG_ERROR, "The V4L2 driver ioctl set input(%d) failed\n",
- s->channel);
- return AVERROR(EIO);
- }
+ av_log(s1, AV_LOG_DEBUG, "The V4L2 driver set input_id: %d, input: %s\n",
+ s->channel, input.name);
+ if (ioctl(s->fd, VIDIOC_S_INPUT, &input.index) < 0) {
+ av_log(s1, AV_LOG_ERROR, "The V4L2 driver ioctl set input(%d) failed\n",
+ s->channel);
+ return AVERROR(EIO);
+ }
#if FF_API_FORMAT_PARAMETERS
if (ap->standard) {