From 504c7ba026dff76f4124effef01f36a528a04bec Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 26 Sep 2022 19:44:32 +0200 Subject: Better subtitle comparisons in tests. --- src/subtitle_asset.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/subtitle_asset.cc') diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc index bd8bb993..271199ef 100644 --- a/src/subtitle_asset.cc +++ b/src/subtitle_asset.cc @@ -558,8 +558,7 @@ SubtitleAsset::equals (shared_ptr other_asset, EqualityOptions opti return false; } - if (string_i && *string_i != *string_j) { - note (NoteType::ERROR, String::compose("subtitles differ in text or metadata: %1 vs %2", string_i->text(), string_j->text())); + if (string_i && !string_i->equals(string_j, options, note)) { return false; } -- cgit v1.2.3