From 13cca01c7b3c11539f0f7b4c666a57567ef003a2 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Wed, 26 Jul 2006 03:14:19 +0000 Subject: Don't decode the first frame if it has a xing tag, not only if it has a xing tag with a frame count git-svn-id: https://svn.musicpd.org/mpd/trunk@4464 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/inputPlugins/mp3_plugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/inputPlugins') diff --git a/src/inputPlugins/mp3_plugin.c b/src/inputPlugins/mp3_plugin.c index 86c3742bb..b6487e7c3 100644 --- a/src/inputPlugins/mp3_plugin.c +++ b/src/inputPlugins/mp3_plugin.c @@ -646,10 +646,11 @@ static int decodeFirstFrame(mp3DecodeData * data, DecoderControl * dc, } if (found_xing) { + data->muteFrame = MUTEFRAME_SKIP; + if (xing.flags & XING_FRAMES) { mad_timer_t duration = data->frame.header.duration; mad_timer_multiply(&duration, xing.frames); - data->muteFrame = MUTEFRAME_SKIP; data->totalTime = ((float)mad_timer_count(duration, MAD_UNITS_MILLISECONDS)) / 1000; data->maxFrames = xing.frames; } -- cgit v1.2.3