From 6e5d26b0e2fac85bfccaae2d3d7b767f2037758c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 21 Feb 2026 01:19:33 +0100 Subject: Stop some "old metadata" fixes when using development versions. --- src/lib/check_content_job.cc | 2 +- src/lib/film.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/check_content_job.cc b/src/lib/check_content_job.cc index 98e8c7989..5e9db4d6d 100644 --- a/src/lib/check_content_job.cc +++ b/src/lib/check_content_job.cc @@ -86,7 +86,7 @@ CheckContentJob::run() set_message(_("Some files have been changed since they were added to the project.\n\nThese files will now be re-examined, so you may need to check their settings.")); } - if (_film->last_written_by_earlier_than(2, 18, 30)) { + if (!_film->last_written_by_git() && _film->last_written_by_earlier_than(2, 18, 30)) { std::vector> needs_upgrade; std::copy_if(content.begin(), content.end(), std::back_inserter(needs_upgrade), [](shared_ptr c) { return static_cast(dynamic_pointer_cast(c)); }); if (!needs_upgrade.empty()) { diff --git a/src/lib/film.cc b/src/lib/film.cc index 3af1a5e18..b0276086a 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -772,7 +772,7 @@ Film::read_metadata(optional path) * Before 2.18.26 we wrote IDs which might now fail. In 2.18.30 we added this check, to mistrust * any existing IDs and to re-create them. */ - if (last_written_by_earlier_than(2, 18, 30)) { + if (!last_written_by_git() && last_written_by_earlier_than(2, 18, 30)) { for (auto content: _playlist->content()) { if (auto ffmpeg = dynamic_pointer_cast(content)) { ffmpeg->remove_stream_ids(); -- cgit v1.2.3