Skip to content

Commit

Permalink
only update title from segment info if null
Browse files Browse the repository at this point in the history
  • Loading branch information
devoxin committed May 7, 2024
1 parent 5cdb301 commit 9258c45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ private void parseSegmentInfo(MatroskaElement infoElement) throws IOException {
duration = reader.asDouble(child);
} else if (child.is(MatroskaElementType.TimecodeScale)) {
timecodeScale = reader.asLong(child);
} else if (child.is(MatroskaElementType.Title)) {
} else if (child.is(MatroskaElementType.Title) && title == null) {
title = reader.asString(child);
}

Expand Down

0 comments on commit 9258c45

Please sign in to comment.