Skip to content

Commit

Permalink
Merge pull request xbmc#11 from mediaminister/ttmlmatrix
Browse files Browse the repository at this point in the history
Don't stack subtitle if begin and end are equal
  • Loading branch information
matthuisman committed Aug 24, 2020
2 parents 963d376 + ce01937 commit 975bb3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parser/TTML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@ bool TTML2SRT::StackSubTitle(const char *s, const char *e, const char *id)
if (!s || !e || !*s || !*e)
return false;

// Don't stack subtitle if begin and end are equal
if (strcmp(s, e) == 0)
return false;

m_subTitles.push_back(SUBTITLE());
SUBTITLE &sub(m_subTitles.back());

Expand Down

0 comments on commit 975bb3c

Please sign in to comment.