summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2002-11-11 05:51:14 +0000
committerMike Melanson <mike@multimedia.cx>2002-11-11 05:51:14 +0000
commitc0d7f4ceec083640fa102a31782c05f4064735ae (patch)
tree5044201facdf97d28b17200425fe14aea5ea229b
parent723e89bc51bad662a67940a7ba0504832de5a490 (diff)
downloadxine-lib-c0d7f4ceec083640fa102a31782c05f4064735ae.tar.gz
xine-lib-c0d7f4ceec083640fa102a31782c05f4064735ae.tar.bz2
LPCM decoder reports itself in the stream/meta info fields
CVS patchset: 3232 CVS date: 2002/11/11 05:51:14
-rw-r--r--src/liblpcm/xine_decoder.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/liblpcm/xine_decoder.c b/src/liblpcm/xine_decoder.c
index 950159178..b95278316 100644
--- a/src/liblpcm/xine_decoder.c
+++ b/src/liblpcm/xine_decoder.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: xine_decoder.c,v 1.35 2002/10/20 18:23:20 tmmm Exp $
+ * $Id: xine_decoder.c,v 1.36 2002/11/11 05:51:14 tmmm Exp $
*
* 31-8-2001 Added LPCM rate sensing.
* (c) 2001 James Courtier-Dutton James@superbug.demon.co.uk
@@ -106,6 +106,10 @@ void lpcm_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
this->bits_per_sample=buf->decoder_info[2] ;
this->number_of_channels=buf->decoder_info[3] ;
format_changed++;
+
+ /* stream/meta info */
+ this->stream->meta_info[XINE_META_INFO_AUDIOCODEC] = strdup("Linear PCM");
+ this->stream->stream_info[XINE_STREAM_INFO_AUDIO_HANDLED] = 1;
}
/*