aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Hochecker <fernetmenta@online.de>2015-02-12 08:05:54 +0100
committerRainer Hochecker <fernetmenta@online.de>2015-02-12 08:05:54 +0100
commitc50fcab77758336de1db50f86bfa6c2cb0de485f (patch)
treedd40970c7279da44c5b670360de139df8451bcb0
parentc096e7eed321a0c90073d73d35cec463cefc5a0e (diff)
paplayer: fix gapless for mp3
-rw-r--r--xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp b/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
index 3bf1b45065..1315117125 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;