summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-01-05 13:18:02 +0000
committerphintuka <phintuka>2010-01-05 13:18:02 +0000
commit89ff68671d572f0756a9af63ffe5327598597fab (patch)
treec09863db5930dd110219609c52a67f89e02ed89a
parentcfc417c9cc148d37c8c0d647e5f22933b3be0dbe (diff)
downloadxineliboutput-89ff68671d572f0756a9af63ffe5327598597fab.tar.gz
xineliboutput-89ff68671d572f0756a9af63ffe5327598597fab.tar.bz2
Added some debug logging
-rw-r--r--xine/BluRay/xine_lpcm_decoder.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xine/BluRay/xine_lpcm_decoder.c b/xine/BluRay/xine_lpcm_decoder.c
index 3d075ac0..141a4a4e 100644
--- a/xine/BluRay/xine_lpcm_decoder.c
+++ b/xine/BluRay/xine_lpcm_decoder.c
@@ -104,6 +104,8 @@ static void lpcm_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
unsigned int sample_rate = 0;
unsigned int num_channels;
+ lprintf("lpcm_decoder: config data 0x%x\n", buf->decoder_info[2]);
+
num_channels = (buf->decoder_info[2] & 0x7) + 1;
switch ((buf->decoder_info[2]>>4) & 3) {
case 0: sample_rate = 48000; break;
@@ -125,6 +127,10 @@ static void lpcm_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
this->number_of_channels = num_channels;
this->rate = sample_rate;
format_changed++;
+
+ xprintf(this->stream->xine, XINE_VERBOSITY_DEBUG,
+ "lpcm_decoder: format changed to %d channels, %d bits per sample, %d Hz, %d kbit/s\n",
+ num_channels, bits_per_sample, sample_rate, (num_channels * sample_rate * bits_per_sample)/1024);
}
}