diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-05-24 00:06:09 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-05-25 17:55:47 +0400 |
commit | d20576d01b6489e37813302c208df01068418bfb (patch) | |
tree | fdedecc44f53c8b9543b7d43898f0ababe275a04 /libavdevice/v4l2.c | |
parent | 79405e57dc1a1e2746c87cba677052d742dbb7ee (diff) |
lavf: deprecate AVFormatParameters.channel.
Diffstat (limited to 'libavdevice/v4l2.c')
-rw-r--r-- | libavdevice/v4l2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 0385a2c6c0..566ee92801 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -453,8 +453,10 @@ static int v4l2_set_parameters(AVFormatContext *s1, AVFormatParameters *ap) streamparm.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; +#if FF_API_FORMAT_PARAMETERS if (ap->channel > 0) s->channel = ap->channel; +#endif /* set tv video input */ memset (&input, 0, sizeof (input)); |