diff options
author | Mike Melanson <mike@multimedia.cx> | 2002-11-11 05:01:31 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2002-11-11 05:01:31 +0000 |
commit | 723e89bc51bad662a67940a7ba0504832de5a490 (patch) | |
tree | 066531a0fc0c023b75a3951e698fb65e11db21af /src/libxineadec/fooaudio.c | |
parent | 061a0924abacaaaadd0d062258ae83d6e3b40562 (diff) | |
download | xine-lib-723e89bc51bad662a67940a7ba0504832de5a490.tar.gz xine-lib-723e89bc51bad662a67940a7ba0504832de5a490.tar.bz2 |
native audio codecs now report themselves in the stream/meta info fields
CVS patchset: 3231
CVS date: 2002/11/11 05:01:31
Diffstat (limited to 'src/libxineadec/fooaudio.c')
-rw-r--r-- | src/libxineadec/fooaudio.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 <stdio.h> @@ -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; |