From c50fcab77758336de1db50f86bfa6c2cb0de485f Mon Sep 17 00:00:00 2001 From: Rainer Hochecker Date: Thu, 12 Feb 2015 08:05:54 +0100 Subject: [PATCH] paplayer: fix gapless for mp3 --- xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp b/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp index 3bf1b45065e52..1315117125680 100644 --- a/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp +++ b/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp @@ -911,7 +911,8 @@ bool CDVDDemuxFFmpeg::SeekTime(int time, bool backwords, double *startpts) } int64_t seek_pts = (int64_t)time * (AV_TIME_BASE / 1000); - if (m_pFormatContext->start_time != (int64_t)AV_NOPTS_VALUE) + bool ismp3 = m_pFormatContext->iformat && (strcmp(m_pFormatContext->iformat->name, "mp3") == 0); + if (m_pFormatContext->start_time != (int64_t)AV_NOPTS_VALUE && !ismp3) seek_pts += m_pFormatContext->start_time; int ret;