summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2002-09-21 18:48:25 +0000
committerMike Melanson <mike@multimedia.cx>2002-09-21 18:48:25 +0000
commit70219a99ccfd485f9f76948ab4f1f97ba6384ca0 (patch)
treed43f71240aace43f9776bd95cbb3037e79a587f2 /src
parentc01a76bb43fc1292e2d17ba3a54eb7d526c7690e (diff)
downloadxine-lib-70219a99ccfd485f9f76948ab4f1f97ba6384ca0.tar.gz
xine-lib-70219a99ccfd485f9f76948ab4f1f97ba6384ca0.tar.bz2
load audio stream information
CVS patchset: 2732 CVS date: 2002/09/21 18:48:25
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/demux_film.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/demuxers/demux_film.c b/src/demuxers/demux_film.c
index ed13347fa..1858d61e2 100644
--- a/src/demuxers/demux_film.c
+++ b/src/demuxers/demux_film.c
@@ -21,7 +21,7 @@
* For more information on the FILM file format, visit:
* http://www.pcisys.net/~melanson/codecs/
*
- * $Id: demux_film.c,v 1.26 2002/09/21 17:22:21 tmmm Exp $
+ * $Id: demux_film.c,v 1.27 2002/09/21 18:48:25 tmmm Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -493,8 +493,15 @@ static int demux_film_send_headers(demux_film_t *this) {
this->status = DEMUX_OK;
+ /* load stream information */
this->xine->stream_info[XINE_STREAM_INFO_VIDEO_WIDTH] = this->bih.biWidth;
this->xine->stream_info[XINE_STREAM_INFO_VIDEO_HEIGHT] = this->bih.biHeight;
+ this->xine->stream_info[XINE_STREAM_INFO_AUDIO_CHANNELS] =
+ this->audio_channels;
+ this->xine->stream_info[XINE_STREAM_INFO_AUDIO_SAMPLERATE] =
+ this->sample_rate;
+ this->xine->stream_info[XINE_STREAM_INFO_AUDIO_BITS] =
+ this->audio_bits;
xine_demux_control_headers_done (this->xine);