summaryrefslogtreecommitdiff
path: root/plugins/mpgmad
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mpgmad')
-rw-r--r--plugins/mpgmad/mpgmad.c2
1 files changed, 1 insertions, 1 deletions
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;