diff options
author | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-11-08 22:20:35 +0000 |
---|---|---|
committer | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-11-08 22:20:35 +0000 |
commit | 91ae797b38921b4dc54c5652d1f08ed97777f0f8 (patch) | |
tree | 354efe7f7a0a649dd075e7a490b1d8786128ad56 /src/input/input_v4l.c | |
parent | 684fe3aec5e100f92cd7675ccbea9b88321ac524 (diff) | |
download | xine-lib-91ae797b38921b4dc54c5652d1f08ed97777f0f8.tar.gz xine-lib-91ae797b38921b4dc54c5652d1f08ed97777f0f8.tar.bz2 |
Use info helper functions.
CVS patchset: 5709
CVS date: 2003/11/08 22:20:35
Diffstat (limited to 'src/input/input_v4l.c')
-rw-r--r-- | src/input/input_v4l.c | 30 |
1 files changed, 14 insertions, 16 deletions
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 = |