From 65690e52a1b5823d6444994e307ad7317b778709 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Fri, 31 Oct 2003 22:56:21 +0000 Subject: Use info_helper functions. CVS patchset: 5657 CVS date: 2003/10/31 22:56:21 --- src/demuxers/demux_wc3movie.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'src/demuxers/demux_wc3movie.c') diff --git a/src/demuxers/demux_wc3movie.c b/src/demuxers/demux_wc3movie.c index 0a3abf0c1..c5767c48f 100644 --- a/src/demuxers/demux_wc3movie.c +++ b/src/demuxers/demux_wc3movie.c @@ -24,7 +24,7 @@ * For more information on the MVE file format, visit: * http://www.pcisys.net/~melanson/codecs/ * - * $Id: demux_wc3movie.c,v 1.42 2003/10/27 23:23:29 tmattern Exp $ + * $Id: demux_wc3movie.c,v 1.43 2003/10/31 22:56:21 tmattern Exp $ */ #ifdef HAVE_CONFIG_H @@ -295,18 +295,20 @@ static void demux_mve_send_headers(demux_plugin_t *this_gen) { this->status = DEMUX_OK; /* load stream information */ - this->stream->stream_info[XINE_STREAM_INFO_HAS_VIDEO] = 1; + xine_set_stream_info(this->stream, XINE_STREAM_INFO_HAS_VIDEO, 1); /* this is not strictly correct-- some WC3 MVE files do not contain * audio, but I'm too lazy to check if that is the case */ - this->stream->stream_info[XINE_STREAM_INFO_HAS_AUDIO] = 1; - this->stream->stream_info[XINE_STREAM_INFO_VIDEO_WIDTH] = this->bih.biWidth; - this->stream->stream_info[XINE_STREAM_INFO_VIDEO_HEIGHT] = this->bih.biHeight; - this->stream->stream_info[XINE_STREAM_INFO_AUDIO_CHANNELS] = - this->wave.nChannels; - this->stream->stream_info[XINE_STREAM_INFO_AUDIO_SAMPLERATE] = - this->wave.nSamplesPerSec; - this->stream->stream_info[XINE_STREAM_INFO_AUDIO_BITS] = - this->wave.wBitsPerSample; + xine_set_stream_info(this->stream, XINE_STREAM_INFO_HAS_AUDIO, 1); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_VIDEO_WIDTH, + this->bih.biWidth); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_VIDEO_HEIGHT, + this->bih.biHeight); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_CHANNELS, + this->wave.nChannels); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_SAMPLERATE, + this->wave.nSamplesPerSec); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_BITS, + this->wave.wBitsPerSample); /* send start buffers */ xine_demux_control_start(this->stream); -- cgit v1.2.3