Skip to content

Commit

Permalink
paplayer: fix gapless for mp3
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Feb 12, 2015
1 parent c096e7e commit c50fcab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
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 c50fcab

Please sign in to comment.