summaryrefslogtreecommitdiff
path: root/src/input/input_v4l.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/input_v4l.c')
-rw-r--r--src/input/input_v4l.c30
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 =