summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_yuv4mpeg2.c
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2003-10-31 22:56:21 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2003-10-31 22:56:21 +0000
commit65690e52a1b5823d6444994e307ad7317b778709 (patch)
treea33eb715b15f7124511ec4e8c490838ea0adb9fc /src/demuxers/demux_yuv4mpeg2.c
parentd5d6cb86986c3c1d1e22c76cb939898834e5f4de (diff)
downloadxine-lib-65690e52a1b5823d6444994e307ad7317b778709.tar.gz
xine-lib-65690e52a1b5823d6444994e307ad7317b778709.tar.bz2
Use info_helper functions.
CVS patchset: 5657 CVS date: 2003/10/31 22:56:21
Diffstat (limited to 'src/demuxers/demux_yuv4mpeg2.c')
-rw-r--r--src/demuxers/demux_yuv4mpeg2.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/demuxers/demux_yuv4mpeg2.c b/src/demuxers/demux_yuv4mpeg2.c
index 51499ed2d..e5842378d 100644
--- a/src/demuxers/demux_yuv4mpeg2.c
+++ b/src/demuxers/demux_yuv4mpeg2.c
@@ -24,7 +24,7 @@
* tools, visit:
* http://mjpeg.sourceforge.net/
*
- * $Id: demux_yuv4mpeg2.c,v 1.28 2003/08/12 20:00:34 jstembridge Exp $
+ * $Id: demux_yuv4mpeg2.c,v 1.29 2003/10/31 22:56:21 tmattern Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -301,10 +301,12 @@ static void demux_yuv4mpeg2_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] = 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;
+ xine_set_stream_info(this->stream, XINE_STREAM_INFO_HAS_VIDEO, 1);
+ xine_set_stream_info(this->stream, XINE_STREAM_INFO_HAS_AUDIO, 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);
/* send start buffers */
xine_demux_control_start(this->stream);