Skip to content

Commit

Permalink
Merge pull request #10521 from iscy/tickets/16906-CueFiles
Browse files Browse the repository at this point in the history
Ticket #16906 - Fix iEndOffset property when parsing cue files
  • Loading branch information
MartijnKaijser committed Sep 21, 2016
2 parents d51c29f + 791b894 commit 7f905f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/CueDocument.cpp
Expand Up @@ -324,7 +324,7 @@ bool CCueDocument::Parse(CueReader& reader, const std::string& strFile)
CLog::Log(LOGERROR, "Mangled Time in INDEX 0x tag in CUE file!");
return false;
}
if (totalTracks > 0) // Set the end time of the last track
if (totalTracks > 0 && m_tracks[totalTracks - 1].strFile == strCurrentFile) // Set the end time of the last track
m_tracks[totalTracks - 1].iEndTime = time;

if (totalTracks >= 0) // start time of the next track
Expand Down

0 comments on commit 7f905f0

Please sign in to comment.