Fix some spelling mistakes (mostly in comments).
authorCarl Hetherington <cth@carlh.net>
Wed, 14 Sep 2022 23:15:55 +0000 (01:15 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 14 Sep 2022 23:15:55 +0000 (01:15 +0200)
16 files changed:
src/lib/config.cc
src/lib/cross_common.cc
src/lib/reel_writer.cc
src/lib/reel_writer.h
src/lib/send_problem_report_job.cc
src/lib/update_checker.h
src/lib/video_decoder.cc
src/lib/writer.cc
src/tools/dcpomatic_player.cc
src/tools/stress
src/wx/content_panel.cc
src/wx/focus_manager.h
src/wx/screen_dialog.cc
test/audio_mapping_test.cc
test/config_test.cc
test/find_missing_test.cc

index 18c792223b020ff1c195f2fb0eca7c1b06e1f84e..eeb009594a0d1db48b905d78cb9331cdaa3aafd7 100644 (file)
@@ -734,7 +734,7 @@ Config::write_config () const
                root->add_child("DefaultContainer")->add_child_text (_default_container->id ());
        }
        if (_default_dcp_content_type) {
-               /* [XML:opt] DefaultDCPContentType Default content type ot use when creating new films (<code>FTR</code>, <code>SHR</code>,
+               /* [XML:opt] DefaultDCPContentType Default content type to use when creating new films (<code>FTR</code>, <code>SHR</code>,
                   <code>TLR</code>, <code>TST</code>, <code>XSN</code>, <code>RTG</code>, <code>TSR</code>, <code>POL</code>,
                   <code>PSA</code> or <code>ADV</code>). */
                root->add_child("DefaultDCPContentType")->add_child_text (_default_dcp_content_type->isdcf_name ());
@@ -1235,7 +1235,7 @@ Config::add_to_history (boost::filesystem::path p)
        add_to_history_internal (_history, p);
 }
 
-/** Remove non-existant items from the history */
+/** Remove non-existent items from the history */
 void
 Config::clean_history ()
 {
index d313445da906bbf3786d2130674cb3f826549720..e8c209b21e098f8da981bd5676af55c0c00b65ab 100644 (file)
@@ -156,7 +156,7 @@ analyse_osx_media_path (string path)
 }
 
 
-/* Take soem OSXDisk objects, representing disks that `DARegisterDiskAppearedCallback` told us about,
+/* Take some OSXDisk objects, representing disks that `DARegisterDiskAppearedCallback` told us about,
  * and find those drives that we could write a DCP to.  The drives returned are "real" (not synthesized)
  * and are whole disks (not partitions).  They may be mounted, or contain mounted partitions, in which
  * their mounted() method will return true.
index baeabc4fd0ff2ddf09fc0371fe1779d55147d794..a247349d5a08c0f75e89dfcff5ec7ed05e5a3341 100644 (file)
@@ -125,9 +125,9 @@ ReelWriter::ReelWriter (
        boost::filesystem::path const asset =
                film()->internal_video_asset_dir() / film()->internal_video_asset_filename(_period);
 
-       _first_nonexistant_frame = check_existing_picture_asset (asset);
+       _first_nonexistent_frame = check_existing_picture_asset (asset);
 
-       if (_first_nonexistant_frame < period.duration().frames_round(film()->video_frame_rate())) {
+       if (_first_nonexistent_frame < period.duration().frames_round(film()->video_frame_rate())) {
                /* We do not have a complete picture asset.  If there is an
                   existing asset, break any hard links to it as we are about
                   to change its contents (if only by changing the IDs); see
@@ -160,7 +160,7 @@ ReelWriter::ReelWriter (
                }
 
                _picture_asset->set_file (asset);
-               _picture_asset_writer = _picture_asset->start_write (asset, _first_nonexistant_frame > 0);
+               _picture_asset_writer = _picture_asset->start_write (asset, _first_nonexistent_frame > 0);
        } else if (!text_only) {
                /* We already have a complete picture asset that we can just re-use */
                /* XXX: what about if the encryption key changes? */
@@ -280,28 +280,28 @@ ReelWriter::check_existing_picture_asset (boost::filesystem::path asset)
        int const n = (boost::filesystem::file_size(info_file->get().path()) / _info_size) - 1;
        LOG_GENERAL ("The last FI is %1; info file is %2, info size %3", n, boost::filesystem::file_size(info_file->get().path()), _info_size);
 
-       Frame first_nonexistant_frame;
+       Frame first_nonexistent_frame;
        if (film()->three_d()) {
                /* Start looking at the last left frame */
-               first_nonexistant_frame = n / 2;
+               first_nonexistent_frame = n / 2;
        } else {
-               first_nonexistant_frame = n;
+               first_nonexistent_frame = n;
        }
 
-       while (!existing_picture_frame_ok(asset_file, info_file, first_nonexistant_frame) && first_nonexistant_frame > 0) {
-               --first_nonexistant_frame;
+       while (!existing_picture_frame_ok(asset_file, info_file, first_nonexistent_frame) && first_nonexistent_frame > 0) {
+               --first_nonexistent_frame;
        }
 
-       if (!film()->three_d() && first_nonexistant_frame > 0) {
+       if (!film()->three_d() && first_nonexistent_frame > 0) {
                /* If we are doing 3D we might have found a good L frame with no R, so only
                   do this if we're in 2D and we've just found a good B(oth) frame.
                */
-               ++first_nonexistant_frame;
+               ++first_nonexistent_frame;
        }
 
-       LOG_GENERAL ("Proceeding with first nonexistant frame %1", first_nonexistant_frame);
+       LOG_GENERAL ("Proceeding with first nonexistent frame %1", first_nonexistent_frame);
 
-       return first_nonexistant_frame;
+       return first_nonexistent_frame;
 }
 
 
index e578a481317b995984996f890536286e052ef2d4..6e92e89230937bb2f8555b5e6c0695d6c6120462 100644 (file)
@@ -91,8 +91,8 @@ public:
                return _period;
        }
 
-       int first_nonexistant_frame () const {
-               return _first_nonexistant_frame;
+       int first_nonexistent_frame () const {
+               return _first_nonexistent_frame;
        }
 
        dcp::FrameInfo read_frame_info (std::shared_ptr<InfoFileHandle> info, Frame frame, Eyes eyes) const;
@@ -123,7 +123,7 @@ private:
 
        dcpomatic::DCPTimePeriod _period;
        /** the first picture frame index that does not already exist in our MXF */
-       int _first_nonexistant_frame;
+       int _first_nonexistent_frame;
        /** the data of the last written frame, if there is one */
        std::shared_ptr<const dcp::Data> _last_written[static_cast<int>(Eyes::COUNT)];
        /** index of this reel within the DCP (starting from 0) */
index 6fbb73430093da8db1224ed626face11f9db522a..34822b1561d7ade97c41d8dd236a4c383c9888fc 100644 (file)
@@ -38,7 +38,7 @@ using std::shared_ptr;
 using std::string;
 
 
-/** @param film Film thta the problem is with, or 0.
+/** @param film Film that the problem is with, or 0.
  *  @param from Email address to use for From:
  *  @param summary Summary of the problem.
  */
index 53ef4457b3452f381d861dec1d0d93f319e3340d..f0ea9798c36d87936c2bc716393e4a488f2b7432 100644 (file)
@@ -35,7 +35,7 @@
 struct update_checker_test;
 
 
-/** Class to check for the existance of an update for DCP-o-matic on a remote server */
+/** Class to check for the existence of an update for DCP-o-matic on a remote server */
 class UpdateChecker : public Signaller
 {
 public:
index 8d6f7e6c77651af66ebe4a46235274e47531f5d8..cf21f885a3fbc6af45ba2efde1cfc18ad645eb9b 100644 (file)
@@ -96,7 +96,7 @@ VideoDecoder::emit (shared_ptr<const Film> film, shared_ptr<const ImageProxy> im
        if (!_position) {
                /* This is the first data we have received since initialisation or seek.  Set
                   the position based on the frame that was given.  After this first time
-                  we just cound frames, since (as with audio) it seems that ContentTimes
+                  we just count frames, since (as with audio) it seems that ContentTimes
                   are unreliable from FFmpegDecoder.  They are much better than audio times
                   but still we get the occasional one which is duplicated.  In this case
                   ffmpeg seems to carry on regardless, processing the video frame as normal.
index 7792dda8e28c7655d7c1c372a3ab7116bda0980e..2dd46f0b2324f4516364b319ab2a1561542cba26 100644 (file)
@@ -801,7 +801,7 @@ Writer::can_fake_write (Frame frame) const
 
        /* Make frame relative to the start of the reel */
        frame -= reel.start ();
-       return (frame != 0 && frame < reel.first_nonexistant_frame());
+       return (frame != 0 && frame < reel.first_nonexistent_frame());
 }
 
 
index 043e90b9efd97104557d08d2bf126b0aeec416b7..90c37d08c726feb29a502585e81a717f3b9a92db 100644 (file)
@@ -970,7 +970,7 @@ private:
 
                int pos = _history_position;
 
-               /* Clear out non-existant history items before we re-build the menu */
+               /* Clear out non-existent history items before we re-build the menu */
                Config::instance()->clean_player_history ();
                auto history = Config::instance()->player_history ();
 
index f861753e64f64fc2ae206b869ffcbfec363bb7b7..66edec6b9f9220045a15b267032593d27d09c3d9 100755 (executable)
@@ -25,9 +25,9 @@ def seek(dcp_seconds):
         print("W %d" % wait)
         # Seek
         print("S %d" % random.randint(0, 4095))
-        # Make sure we're stil playing
+        # Make sure we're still playing
         print("P")
-        test_seconds -= wait / 1000 
+        test_seconds -= wait / 1000
 
 def repeat(dcp_seconds):
     print("O %s" % args.dcp)
index 5f3b3e4760e116065954789b276a07ac82a1ab73..f51d5ed48da7cd955b9afe8470305be26ab7d7b8 100644 (file)
@@ -550,7 +550,7 @@ bool
 ContentPanel::remove_clicked (bool hotkey)
 {
        /* If the method was called because Delete was pressed check that our notebook page
-          is visible and that the content list is focussed.
+          is visible and that the content list is focused.
        */
        if (hotkey && (_parent->GetCurrentPage() != _splitter || !_content->HasFocus())) {
                return true;
index 337d877398bde393a36ce5649d9f0983d9c2687b..ca4c4e384e25902abee86f7903553add9f73567a 100644 (file)
@@ -31,7 +31,7 @@ class wxFocusEvent;
  *
  *  This allows us to turn off accelerators for the duration of the focus so that they don't steal
  *  keypresses.  It's a hack but the only way I could make it work on all platforms (looking for
- *  the focussed thing and doing ev.Skip() if it's a wxTextCtrl did not work for me on Windows:
+ *  the focused thing and doing ev.Skip() if it's a wxTextCtrl did not work for me on Windows:
  *  ev.Skip() did not cause the event to be delivered).
  */
 class FocusManager
index 38e6a85bfff392c885a6c9d0869cfe664480484a..716f9e9eb3db91dbdb16546a19447e0084e0558f 100644 (file)
@@ -70,7 +70,7 @@ public:
                                _certificate = dcp::Certificate(dcp::file_to_string(wx_to_std(d->GetPath())));
                                _thumbprint->SetValue (std_to_wx(_certificate->thumbprint()));
                        } catch (dcp::MiscError& e) {
-                               error_dialog (this, wxString::Format(_("Could not load certficate (%s)"), std_to_wx(e.what())));
+                               error_dialog(this, wxString::Format(_("Could not load certificate (%s)"), std_to_wx(e.what())));
                        }
                }
        }
index 8599c6af561911ad67756d015e5bd4b8f4edb219..ca58c03ca0a8a965ef64ee95476b9589a14150d2 100644 (file)
@@ -94,7 +94,7 @@ BOOST_AUTO_TEST_CASE (audio_mapping_guess_test)
        guess_check ("more_Lss_s.wav", 4);
        guess_check ("other_Rss.aiff", 5);
 
-       /* Only the filename should be taken into acccount */
+       /* Only the filename should be taken into account */
        guess_check ("-Lfe-/foo_L.wav", 0);
 }
 
index fc3a27601e4d763a646b744621652a98c3b4810a..e905500852428e9e8a56afb202342101457b3a22 100644 (file)
@@ -177,7 +177,7 @@ BOOST_AUTO_TEST_CASE (config_upgrade_test)
        boost::filesystem::copy_file ("test/data/2.14.cinemas.xml", dir / "cinemas.xml");
        Config::instance();
        try {
-               /* This will fail to write cinemas.xml since the link is to a non-existant directory */
+               /* This will fail to write cinemas.xml since the link is to a non-existent directory */
                Config::instance()->write();
        } catch (...) {}
 
index 3e64bede4c50aebe221da239a0a3860d7a4db027..51ae5800cb0506d431a8454c3fa2f50391f59407 100644 (file)
@@ -55,7 +55,7 @@ BOOST_AUTO_TEST_CASE (find_missing_test_with_single_files)
                });
        film->write_metadata ();
 
-       /* Move the content somewhere eles */
+       /* Move the content somewhere else */
        auto moved = path("build/test") / path(name + "_moved");
        remove_all (moved);
        rename (content_dir, moved);