Cleanup: rename subtitle_stop -> text_stop.
authorCarl Hetherington <cth@carlh.net>
Sat, 1 Feb 2025 13:49:46 +0000 (14:49 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 3 Feb 2025 00:28:36 +0000 (01:28 +0100)
src/lib/player.cc
src/lib/player.h

index 89df880d861b358ef73204505c38f96d1f354730..e5abaae683b5e189044eedb02f0513e113931dde 100644 (file)
@@ -353,7 +353,7 @@ Player::setup_pieces()
                                bind(&Player::plain_text_start, this, weak_ptr<Piece>(piece), weak_ptr<const TextContent>((*j)->content()), _1)
                                );
                        (*j)->Stop.connect(
-                               bind(&Player::subtitle_stop, this, weak_ptr<Piece>(piece), weak_ptr<const TextContent>((*j)->content()), _1)
+                               bind(&Player::text_stop, this, weak_ptr<Piece>(piece), weak_ptr<const TextContent>((*j)->content()), _1)
                                );
 
                        ++j;
@@ -1329,7 +1329,7 @@ Player::plain_text_start(weak_ptr<Piece> weak_piece, weak_ptr<const TextContent>
 
 
 void
-Player::subtitle_stop(weak_ptr<Piece> weak_piece, weak_ptr<const TextContent> weak_content, ContentTime to)
+Player::text_stop(weak_ptr<Piece> weak_piece, weak_ptr<const TextContent> weak_content, ContentTime to)
 {
        if (_suspended) {
                return;
index 70c08047591af2fd26b09777795ed8705cfd1c4e..5148ad3a1e0f810d358241ee6e851b2411a6495f 100644 (file)
@@ -166,7 +166,7 @@ private:
        void audio(std::weak_ptr<Piece>, AudioStreamPtr, ContentAudio);
        void bitmap_text_start(std::weak_ptr<Piece>, std::weak_ptr<const TextContent>, ContentBitmapText);
        void plain_text_start(std::weak_ptr<Piece>, std::weak_ptr<const TextContent>, ContentStringText);
-       void subtitle_stop(std::weak_ptr<Piece>, std::weak_ptr<const TextContent>, dcpomatic::ContentTime);
+       void text_stop(std::weak_ptr<Piece>, std::weak_ptr<const TextContent>, dcpomatic::ContentTime);
        void atmos(std::weak_ptr<Piece>, ContentAtmos);
 
        dcpomatic::DCPTime one_video_frame() const;