summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/check_content_job.cc2
-rw-r--r--src/lib/film.cc2
2 files changed, 2 insertions, 2 deletions
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<shared_ptr<Content>> needs_upgrade;
std::copy_if(content.begin(), content.end(), std::back_inserter(needs_upgrade), [](shared_ptr<Content> c) { return static_cast<bool>(dynamic_pointer_cast<FFmpegContent>(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<boost::filesystem::path> 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<FFmpegContent>(content)) {
ffmpeg->remove_stream_ids();