diff options
author | James Stembridge <jstembridge@users.sourceforge.net> | 2004-01-08 23:17:34 +0000 |
---|---|---|
committer | James Stembridge <jstembridge@users.sourceforge.net> | 2004-01-08 23:17:34 +0000 |
commit | d1c62ab2512fa23f7bf510396bf5bce28e05b5f9 (patch) | |
tree | 14fb8ed2033dcb8b067af9a4ac74d8d614e97e57 | |
parent | a35db98b34314ef95ef4cd1e21198db29f214c90 (diff) | |
download | xine-lib-d1c62ab2512fa23f7bf510396bf5bce28e05b5f9.tar.gz xine-lib-d1c62ab2512fa23f7bf510396bf5bce28e05b5f9.tar.bz2 |
check for recognised codecs
CVS patchset: 6013
CVS date: 2004/01/08 23:17:34
-rw-r--r-- | src/demuxers/demux_real.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/demuxers/demux_real.c b/src/demuxers/demux_real.c index 75f6b7fc3..7d75c26d8 100644 --- a/src/demuxers/demux_real.c +++ b/src/demuxers/demux_real.c @@ -31,7 +31,7 @@ * * Based on FFmpeg's libav/rm.c. * - * $Id: demux_real.c,v 1.74 2003/12/12 22:29:20 jstembridge Exp $ + * $Id: demux_real.c,v 1.75 2004/01/08 23:17:34 jstembridge Exp $ */ #ifdef HAVE_CONFIG_H @@ -652,6 +652,10 @@ unknown: /* Send headers and set meta info */ if(this->video_stream) { buf_element_t *buf; + + /* Check for recognised codec*/ + if(!this->video_stream->buf_type) + this->video_stream->buf_type = BUF_VIDEO_UNKNOWN; /* Send header */ buf = this->video_fifo->buffer_pool_alloc(this->video_fifo); @@ -691,6 +695,10 @@ unknown: } if(this->audio_stream) { + /* Check for recognised codec */ + if(!this->audio_stream->buf_type) + this->audio_stream->buf_type = BUF_AUDIO_UNKNOWN; + /* Send headers */ if(this->audio_fifo) { buf_element_t *buf; |