From 723e89bc51bad662a67940a7ba0504832de5a490 Mon Sep 17 00:00:00 2001 From: Mike Melanson Date: Mon, 11 Nov 2002 05:01:31 +0000 Subject: native audio codecs now report themselves in the stream/meta info fields CVS patchset: 3231 CVS date: 2002/11/11 05:01:31 --- src/libxineadec/fooaudio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libxineadec/fooaudio.c') diff --git a/src/libxineadec/fooaudio.c b/src/libxineadec/fooaudio.c index a1805179d..5368d6b5f 100644 --- a/src/libxineadec/fooaudio.c +++ b/src/libxineadec/fooaudio.c @@ -21,7 +21,7 @@ * player. It really works too! It will output a continuous sine wave in * place of the data it should actually send. * - * $Id: fooaudio.c,v 1.1 2002/11/02 20:55:23 tmmm Exp $ + * $Id: fooaudio.c,v 1.2 2002/11/11 05:01:35 tmmm Exp $ */ #include @@ -97,6 +97,10 @@ static void fooaudio_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) this->bufsize = AUDIOBUFSIZE; this->size = 0; + /* take this opportunity to initialize stream/meta information */ + this->stream->meta_info[XINE_META_INFO_AUDIOCODEC] = strdup("fooaudio"); + this->stream->stream_info[XINE_STREAM_INFO_AUDIO_HANDLED] = 1; + /* peform any other required initialization */ this->last_pts = -1; this->iteration = 0; -- cgit v1.2.3