From f6be3c3e63b1736faf54aaf889850543465e5cea Mon Sep 17 00:00:00 2001 From: waker Date: Sun, 18 Aug 2013 19:39:51 +0200 Subject: mp3: fixed streaming regression --- plugins/mpgmad/mpgmad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mpgmad') diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c index 70087511..99754df2 100644 --- a/plugins/mpgmad/mpgmad.c +++ b/plugins/mpgmad/mpgmad.c @@ -584,7 +584,7 @@ cmp3_scan_stream (buffer_t *buffer, int sample) { // unable to determine duration buffer->duration = -1; buffer->totalsamples = -1; - if (sample == 0) { + if (sample == 0 && !have_info) { trace ("check validity of the next frame...\n"); deadbeef->fseek (buffer->file, framepos+packetlength, SEEK_SET); continue; -- cgit v1.2.3