diff options
Diffstat (limited to 'src/demuxers/demux_real.c')
-rw-r--r-- | src/demuxers/demux_real.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/demuxers/demux_real.c b/src/demuxers/demux_real.c index 476273b57..fc0f2f33c 100644 --- a/src/demuxers/demux_real.c +++ b/src/demuxers/demux_real.c @@ -30,7 +30,7 @@ * * Based on FFmpeg's libav/rm.c. * - * $Id: demux_real.c,v 1.67 2003/10/28 21:14:17 jstembridge Exp $ + * $Id: demux_real.c,v 1.68 2003/10/31 22:56:21 tmattern Exp $ */ #ifdef HAVE_CONFIG_H @@ -394,7 +394,8 @@ static void real_parse_headers (demux_real_t *this) { if (this->avg_bitrate<1) this->avg_bitrate = 1; - this->stream->stream_info[XINE_STREAM_INFO_BITRATE] = this->avg_bitrate; + xine_set_stream_info(this->stream, XINE_STREAM_INFO_BITRATE, + this->avg_bitrate); } else if (chunk_type == MDPR_TAG) { @@ -656,11 +657,11 @@ unknown: this->video_fifo->put (this->video_fifo, buf); /* Set meta info */ - this->stream->stream_info[XINE_STREAM_INFO_HAS_VIDEO] = 1; - this->stream->stream_info[XINE_STREAM_INFO_VIDEO_FOURCC] = - this->video_stream->fourcc; - this->stream->stream_info[XINE_STREAM_INFO_VIDEO_BITRATE] = - this->video_stream->mdpr->avg_bit_rate; + xine_set_stream_info(this->stream, XINE_STREAM_INFO_HAS_VIDEO, 1); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_VIDEO_FOURCC, + this->video_stream->fourcc); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_VIDEO_BITRATE, + this->video_stream->mdpr->avg_bit_rate); } if(this->audio_stream) { @@ -686,11 +687,11 @@ unknown: } /* Set meta info */ - this->stream->stream_info[XINE_STREAM_INFO_HAS_AUDIO] = 1; - this->stream->stream_info[XINE_STREAM_INFO_AUDIO_FOURCC] = - this->audio_stream->fourcc; - this->stream->stream_info[XINE_STREAM_INFO_AUDIO_BITRATE] = - this->audio_stream->mdpr->avg_bit_rate; + xine_set_stream_info(this->stream, XINE_STREAM_INFO_HAS_AUDIO, 1); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_FOURCC, + this->audio_stream->fourcc); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_BITRATE, + this->audio_stream->mdpr->avg_bit_rate); } } @@ -1149,8 +1150,8 @@ static void demux_real_send_headers(demux_plugin_t *this_gen) { this->input->seek (this->input, 0, SEEK_SET); - this->stream->stream_info[XINE_STREAM_INFO_HAS_VIDEO] = 0; - this->stream->stream_info[XINE_STREAM_INFO_HAS_AUDIO] = 0; + xine_set_stream_info(this->stream, XINE_STREAM_INFO_HAS_VIDEO, 0); + xine_set_stream_info(this->stream, XINE_STREAM_INFO_HAS_AUDIO, 0); if( !this->reference_mode ) { real_parse_headers (this); |