Skip to content

Commit

Permalink
Merge pull request xbmc#6384 from FernetMenta/mp3
Browse files Browse the repository at this point in the history
paplayer: fix gapless for mp3
  • Loading branch information
FernetMenta committed Feb 12, 2015
2 parents ecb47ab + c50fcab commit 809b1f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 809b1f4

Please sign in to comment.