subtitles: implemented very basic renderer

This commit is contained in:
itsmattkc
2022-05-08 14:45:43 -07:00
parent 197f94f8d6
commit bdb917c591
7 changed files with 146 additions and 4 deletions
+9
View File
@@ -118,6 +118,15 @@ void Sequence::Retranslate()
}
}
void Sequence::InvalidateCache(const TimeRange &range, const QString &from, int element, InvalidateCacheOptions options)
{
if (from == kTrackInputFormat.arg(Track::kSubtitle)) {
emit SubtitlesChanged(range);
}
super::InvalidateCache(range, from, element, options);
}
rational Sequence::VerifyLengthInternal(Track::Type type) const
{
if (!track_lists_.isEmpty()) {