From 91ae797b38921b4dc54c5652d1f08ed97777f0f8 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Sat, 8 Nov 2003 22:20:35 +0000 Subject: Use info helper functions. CVS patchset: 5709 CVS date: 2003/11/08 22:20:35 --- src/input/input_v4l.c | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'src/input/input_v4l.c') diff --git a/src/input/input_v4l.c b/src/input/input_v4l.c index 141277362..25190d7c3 100644 --- a/src/input/input_v4l.c +++ b/src/input/input_v4l.c @@ -732,11 +732,11 @@ static int open_radio_capture_device(v4l_input_plugin_t *this) if (set_input_source(this, this->tuner_name) > 0) tuner_found = 1; - this->stream->stream_info[XINE_STREAM_INFO_AUDIO_CHANNELS] = periods; - this->stream->stream_info[XINE_STREAM_INFO_AUDIO_BITS] = bits; - this->stream->stream_info[XINE_STREAM_INFO_AUDIO_SAMPLERATE] = rate; - this->stream->stream_info[XINE_STREAM_INFO_HAS_AUDIO] = 1; - this->stream->stream_info[XINE_STREAM_INFO_HAS_VIDEO] = 0; + xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_CHANNELS, periods); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_BITS, bits); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_SAMPLERATE, rate); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_HAS_AUDIO, 1); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_HAS_VIDEO, 0); /* * Pre allocate some frames for audio and video. This way this hasn't to be @@ -845,13 +845,13 @@ static int open_video_capture_device(v4l_input_plugin_t *this) return 0; } - this->stream->stream_info[XINE_STREAM_INFO_VIDEO_WIDTH] = resolutions[j].width; - this->stream->stream_info[XINE_STREAM_INFO_VIDEO_HEIGHT] = resolutions[j].height; - this->stream->stream_info[XINE_STREAM_INFO_AUDIO_CHANNELS] = periods; - this->stream->stream_info[XINE_STREAM_INFO_AUDIO_BITS] = bits; - this->stream->stream_info[XINE_STREAM_INFO_AUDIO_SAMPLERATE] = rate; - this->stream->stream_info[XINE_STREAM_INFO_HAS_AUDIO] = 1; - this->stream->stream_info[XINE_STREAM_INFO_HAS_VIDEO] = 1; + xine_set_stream_info(this->stream, XINE_STREAM_INFO_VIDEO_WIDTH, resolutions[j].width); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_VIDEO_HEIGHT, resolutions[j].height); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_CHANNELS, periods); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_BITS, bits); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_SAMPLERATE, rate); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_HAS_AUDIO, 1); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_HAS_VIDEO, 1); /* * Pre allocate some frames for audio and video. This way this hasn't to be @@ -997,10 +997,8 @@ static int open_video_capture_device(v4l_input_plugin_t *this) } /* Save dimensions */ - this->stream->stream_info[XINE_STREAM_INFO_VIDEO_WIDTH] = - resolutions[j].width; - this->stream->stream_info[XINE_STREAM_INFO_VIDEO_HEIGHT] = - resolutions[j].height; + xine_set_stream_info(this->stream, XINE_STREAM_INFO_VIDEO_WIDTH, resolutions[j].width); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_VIDEO_HEIGHT, resolutions[j].height); /* Using deinterlaceing is highly recommended. Setting to true */ this->old_interlace = -- cgit v1.2.3