summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_smjpeg.c
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2003-10-31 23:58:32 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2003-10-31 23:58:32 +0000
commit2408a34f47034a4d1a6a20e2f46b40b282ee9cb2 (patch)
treef1b969923d0a85510d819f522540e6cd16ac33a1 /src/demuxers/demux_smjpeg.c
parent65690e52a1b5823d6444994e307ad7317b778709 (diff)
downloadxine-lib-2408a34f47034a4d1a6a20e2f46b40b282ee9cb2.tar.gz
xine-lib-2408a34f47034a4d1a6a20e2f46b40b282ee9cb2.tar.bz2
Use info_helper functions.
CVS patchset: 5658 CVS date: 2003/10/31 23:58:32
Diffstat (limited to 'src/demuxers/demux_smjpeg.c')
-rw-r--r--src/demuxers/demux_smjpeg.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/demuxers/demux_smjpeg.c b/src/demuxers/demux_smjpeg.c
index a3e9d3b74..563ba6116 100644
--- a/src/demuxers/demux_smjpeg.c
+++ b/src/demuxers/demux_smjpeg.c
@@ -23,7 +23,7 @@
* For more information on the SMJPEG file format, visit:
* http://www.lokigames.com/development/smjpeg.php3
*
- * $Id: demux_smjpeg.c,v 1.41 2003/08/25 21:51:38 f1rmb Exp $
+ * $Id: demux_smjpeg.c,v 1.42 2003/10/31 23:58:32 tmattern Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -315,17 +315,19 @@ static void demux_smjpeg_send_headers(demux_plugin_t *this_gen) {
this->status = DEMUX_OK;
/* load stream information */
- this->stream->stream_info[XINE_STREAM_INFO_HAS_VIDEO] = 1;
- this->stream->stream_info[XINE_STREAM_INFO_HAS_AUDIO] =
- (this->audio_channels) ? 1 : 0;
- 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->audio_channels;
- this->stream->stream_info[XINE_STREAM_INFO_AUDIO_SAMPLERATE] =
- this->audio_sample_rate;
- this->stream->stream_info[XINE_STREAM_INFO_AUDIO_BITS] =
- this->audio_bits;
+ xine_set_stream_info(this->stream, XINE_STREAM_INFO_HAS_VIDEO, 1);
+ xine_set_stream_info(this->stream, XINE_STREAM_INFO_HAS_AUDIO,
+ (this->audio_channels) ? 1 : 0);
+ 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->audio_channels);
+ xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_SAMPLERATE,
+ this->audio_sample_rate);
+ xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_BITS,
+ this->audio_bits);
/* send start buffers */
xine_demux_control_start(this->stream);