diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-06-07 04:15:45 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-06-07 04:15:45 +0000 |
commit | b70b50fb22d4a78b0a67d517c9da700a705a5921 (patch) | |
tree | 75e619f7b04e6a8510be22240b3fbf154db9fb90 /src/demuxers | |
parent | 15891af86f77397a56b6a2b6e28cac2cf8ca4713 (diff) | |
download | xine-lib-b70b50fb22d4a78b0a67d517c9da700a705a5921.tar.gz xine-lib-b70b50fb22d4a78b0a67d517c9da700a705a5921.tar.bz2 |
codec reporting api
CVS patchset: 2030
CVS date: 2002/06/07 04:15:45
Diffstat (limited to 'src/demuxers')
-rw-r--r-- | src/demuxers/demux_asf.c | 5 | ||||
-rw-r--r-- | src/demuxers/demux_avi.c | 5 | ||||
-rw-r--r-- | src/demuxers/demux_qt.c | 8 |
3 files changed, 15 insertions, 3 deletions
diff --git a/src/demuxers/demux_asf.c b/src/demuxers/demux_asf.c index eb5bada79..6ba986aa3 100644 --- a/src/demuxers/demux_asf.c +++ b/src/demuxers/demux_asf.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_asf.c,v 1.43 2002/06/07 02:40:46 miguelfreitas Exp $ + * $Id: demux_asf.c,v 1.44 2002/06/07 04:15:46 miguelfreitas Exp $ * * demultiplexer for asf streams * @@ -334,6 +334,7 @@ static void asf_send_audio_header (demux_asf_t *this, int stream_id) { if ( !this->streams[this->num_streams].buf_type ) { printf ("demux_asf: unknown audio type 0x%x\n", wavex->wFormatTag); + xine_report_codec( this->xine, XINE_CODEC_AUDIO, wavex->wFormatTag, 0, 0); this->streams[this->num_streams].buf_type = BUF_CONTROL_NOP; } else xine_log (this->xine, XINE_LOG_FORMAT, @@ -389,6 +390,8 @@ static void asf_send_video_header (demux_asf_t *this, int stream_id) { printf ("demux_asf: unknown video format %.4s\n", (char*)&bih->biCompression); + xine_report_codec( this->xine, XINE_CODEC_VIDEO, bih->biCompression, 0, 0); + this->status = DEMUX_FINISHED; return; } diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c index b41b88555..7978bd3a4 100644 --- a/src/demuxers/demux_avi.c +++ b/src/demuxers/demux_avi.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_avi.c,v 1.93 2002/06/07 02:40:46 miguelfreitas Exp $ + * $Id: demux_avi.c,v 1.94 2002/06/07 04:15:46 miguelfreitas Exp $ * * demultiplexer for avi streams * @@ -1240,6 +1240,7 @@ static int demux_avi_start (demux_plugin_t *this_gen, if( !this->avi->audio[i]->audio_type ) { xine_log (this->xine, XINE_LOG_FORMAT, _("demux_avi: unknown audio type 0x%lx\n"), this->avi->audio[i]->wavex->wFormatTag); + xine_report_codec( this->xine, XINE_CODEC_AUDIO, this->avi->audio[i]->wavex->wFormatTag, 0, 0); this->no_audio = 1; this->avi->audio[i]->audio_type = BUF_CONTROL_NOP; } @@ -1364,6 +1365,8 @@ static int demux_avi_start (demux_plugin_t *this_gen, xine_log (this->xine, XINE_LOG_FORMAT, _("demux_avi: unknown video codec '%.4s'\n"), (char*)&this->avi->bih.biCompression); buf->free_buffer (buf); + + xine_report_codec( this->xine, XINE_CODEC_VIDEO, this->avi->bih.biCompression, 0, 0); this->status = DEMUX_FINISHED; } else { diff --git a/src/demuxers/demux_qt.c b/src/demuxers/demux_qt.c index 7adb9a24a..7c7578393 100644 --- a/src/demuxers/demux_qt.c +++ b/src/demuxers/demux_qt.c @@ -30,7 +30,7 @@ * build_frame_table * free_qt_info * - * $Id: demux_qt.c,v 1.47 2002/06/07 02:48:31 tmmm Exp $ + * $Id: demux_qt.c,v 1.48 2002/06/07 04:15:46 miguelfreitas Exp $ * */ @@ -1253,8 +1253,14 @@ static int demux_qt_start (demux_plugin_t *this_gen, this->bih.biCompression = this->qt->video_codec; this->qt->video_type = fourcc_to_buf_video(this->bih.biCompression); + + if( !this->qt->video_type ) + xine_report_codec( this->xine, XINE_CODEC_VIDEO, this->bih.biCompression, 0, 0); this->qt->audio_type = formattag_to_buf_audio(this->qt->audio_codec); + + if( !this->qt->audio_type ) + xine_report_codec( this->xine, XINE_CODEC_AUDIO, this->qt->audio_codec, 0, 0); /* print vital stats */ xine_log (this->xine, XINE_LOG_FORMAT, |