diff options
author | Richard Knutsson <ricknu-0@student.ltu.se> | 2007-12-08 08:35:06 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:03:26 -0500 |
commit | 14d5deba2737c59444e805c10764d58a3d73e9b2 (patch) | |
tree | 89caa43d90e9c622261ede8f81999a7aee158aa8 /drivers/media/video/ivtv/ivtv-streams.c | |
parent | d130fa8a05ee5f39c786df02dd75d1eebb12633b (diff) |
V4L/DVB (6776): ivtv: Some general fixes
Fix "warning: Using plain integer as NULL pointer".
Convert 'x < y ? x : y' to use min() instead.
Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-streams.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-streams.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/ivtv/ivtv-streams.c b/drivers/media/video/ivtv/ivtv-streams.c index 3ca2a1a62a71..24d98ecf35ad 100644 --- a/drivers/media/video/ivtv/ivtv-streams.c +++ b/drivers/media/video/ivtv/ivtv-streams.c | |||
@@ -572,10 +572,10 @@ int ivtv_start_v4l2_encode_stream(struct ivtv_stream *s) | |||
572 | clear_bit(IVTV_F_I_EOS, &itv->i_flags); | 572 | clear_bit(IVTV_F_I_EOS, &itv->i_flags); |
573 | 573 | ||
574 | /* Initialize Digitizer for Capture */ | 574 | /* Initialize Digitizer for Capture */ |
575 | itv->video_dec_func(itv, VIDIOC_STREAMOFF, 0); | 575 | itv->video_dec_func(itv, VIDIOC_STREAMOFF, NULL); |
576 | ivtv_msleep_timeout(300, 1); | 576 | ivtv_msleep_timeout(300, 1); |
577 | ivtv_vapi(itv, CX2341X_ENC_INITIALIZE_INPUT, 0); | 577 | ivtv_vapi(itv, CX2341X_ENC_INITIALIZE_INPUT, 0); |
578 | itv->video_dec_func(itv, VIDIOC_STREAMON, 0); | 578 | itv->video_dec_func(itv, VIDIOC_STREAMON, NULL); |
579 | } | 579 | } |
580 | 580 | ||
581 | /* begin_capture */ | 581 | /* begin_capture */ |