From 076d8c0649473093d77c0b29d910850eaa53bab4 Mon Sep 17 00:00:00 2001 From: waker Date: Mon, 20 May 2013 20:06:28 +0200 Subject: fixed parsing content type containing a charset; sleep 400ms (configurable) after loading remote playlist, to avoid server rejects --- plugins/mpgmad/mpgmad.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/mpgmad') 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; } // }}} -- cgit v1.2.3