summaryrefslogtreecommitdiff
path: root/src/libxineadec/logpcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libxineadec/logpcm.c')
-rw-r--r--src/libxineadec/logpcm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libxineadec/logpcm.c b/src/libxineadec/logpcm.c
index 348cba9c9..a8671c9db 100644
--- a/src/libxineadec/logpcm.c
+++ b/src/libxineadec/logpcm.c
@@ -30,7 +30,7 @@
* http://sox.sourceforge.net/
* which listed the code as being lifted from Sun Microsystems.
*
- * $Id: logpcm.c,v 1.7 2002/11/03 06:08:54 tmmm Exp $
+ * $Id: logpcm.c,v 1.8 2002/11/11 05:01:32 tmmm Exp $
*
*/
@@ -159,6 +159,12 @@ static void logpcm_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
this->bufsize = AUDIOBUFSIZE;
this->size = 0;
+ /* stream/meta info */
+ this->stream->meta_info[XINE_META_INFO_AUDIOCODEC] =
+ (buf->type == BUF_AUDIO_MULAW) ? strdup("mu-law log PCM") :
+ strdup("A-law log PCM");
+ this->stream->stream_info[XINE_STREAM_INFO_AUDIO_HANDLED] = 1;
+
/* pre-calculate the possible log values */
if (buf->type == BUF_AUDIO_MULAW)
for (i = 0; i < 256; i++)