From e639e3597db2ef2cf0f51e2fcc62725d579927bd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 17 Jul 2019 20:53:20 +0100 Subject: Speculative OpenMP build fix (github bug #1). --- src/mono_picture_asset.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mono_picture_asset.cc b/src/mono_picture_asset.cc index 5a014910..de49b1b9 100644 --- a/src/mono_picture_asset.cc +++ b/src/mono_picture_asset.cc @@ -124,13 +124,13 @@ MonoPictureAsset::equals (shared_ptr other, EqualityOptions opt, No bool result = true; + shared_ptr reader = start_read (); + shared_ptr other_reader = other_picture->start_read (); + #ifdef LIBDCP_OPENMP #pragma omp parallel for #endif - shared_ptr reader = start_read (); - shared_ptr other_reader = other_picture->start_read (); - for (int i = 0; i < _intrinsic_duration; ++i) { if (i >= other_picture->intrinsic_duration()) { result = false; -- cgit v1.2.3