Skip to content

Commit

Permalink
clarify comments on edition checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Patelscheck committed Nov 22, 2016
1 parent dd9c181 commit c6e728b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions xbmc/cores/VideoPlayer/DVDDemuxers/DemuxTimeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,12 @@ CDemuxTimeline* CDemuxTimeline::CreateTimeline(CDVDDemux *primaryDemuxer)
if (!result)
return nullptr;

// multiple editions unsupported (at the moment)
if (mkv.segment.chapters.editions.size() > 0)
// at least one edition is need
if (mkv.segment.chapters.editions.size() == 0)
return nullptr;
// multiple editions unsupported (for now), just select the first
auto &edition = mkv.segment.chapters.editions.front();
// only handle ordered chapters
// only handle ordered editions
if (!edition.flagOrdered)
return nullptr;

Expand Down

0 comments on commit c6e728b

Please sign in to comment.