summaryrefslogtreecommitdiff
path: root/plugins/mpgmad
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2013-05-20 20:06:28 +0200
committerGravatar waker <wakeroid@gmail.com>2013-05-20 20:26:08 +0200
commit076d8c0649473093d77c0b29d910850eaa53bab4 (patch)
treecc906774f5fa401c42385e32f8b5364b86585d81 /plugins/mpgmad
parent5802a14b3b943c37251ab451887de87eaa3866f3 (diff)
fixed parsing content type containing a charset;
sleep 400ms (configurable) after loading remote playlist, to avoid server rejects
Diffstat (limited to 'plugins/mpgmad')
-rw-r--r--plugins/mpgmad/mpgmad.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c
index c8a696ad..87761bb6 100644
--- a/plugins/mpgmad/mpgmad.c
+++ b/plugins/mpgmad/mpgmad.c
@@ -188,7 +188,7 @@ extract_f32 (unsigned char *buf) {
// return value: -1 on error
static int
cmp3_scan_stream (buffer_t *buffer, int sample) {
- trace ("cmp3_scan_stream %d\n", sample);
+ trace ("cmp3_scan_stream %d (offs: %lld)\n", sample, deadbeef->ftell (buffer->file));
// {{{ prepare for scan - seek, reset averages, etc
int initpos = deadbeef->ftell (buffer->file);
@@ -882,7 +882,7 @@ cmp3_init (DB_fileinfo_t *_info, DB_playItem_t *it) {
trace ("duration=%f, endsample=%d, totalsamples=%d\n", info->buffer.duration, info->buffer.endsample, info->buffer.totalsamples);
}
if (info->buffer.samplerate == 0) {
- trace ("bad mpeg file: %f\n", deadbeef->pl_find_meta (it, ":URI"));
+ trace ("bad mpeg file: %s\n", deadbeef->pl_find_meta (it, ":URI"));
return -1;
}
_info->fmt.bps = info->buffer.bitspersample;
@@ -1259,7 +1259,7 @@ cmp3_seek_sample (DB_fileinfo_t *_info, int sample) {
trace ("seek failed!\n");
return -1;
}
- trace ("seek is impossible (avg_samples_per_frame=%d, avg_packetlength=%d)!\n", info->buffer.avg_samples_per_frame, info->buffer.avg_packetlength);
+ trace ("seek is impossible (avg_samples_per_frame=%d, avg_packetlength=%f)!\n", info->buffer.avg_samples_per_frame, info->buffer.avg_packetlength);
return 0;
}
// }}}