Add some missing change signals in the Player.
authorCarl Hetherington <cth@carlh.net>
Fri, 14 Oct 2022 09:19:50 +0000 (11:19 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 14 Oct 2022 10:55:36 +0000 (12:55 +0200)
src/lib/player.cc
src/lib/player.h

index 004dc75b361b70c644579662322e6d46c7d566f5..823a8becb109cf5e0f5a503da2fb861f827919a9 100644 (file)
@@ -93,6 +93,11 @@ int const PlayerProperty::FILM_CONTAINER = 702;
 int const PlayerProperty::FILM_VIDEO_FRAME_RATE = 703;
 int const PlayerProperty::DCP_DECODE_REDUCTION = 704;
 int const PlayerProperty::PLAYBACK_LENGTH = 705;
+int const PlayerProperty::IGNORE_VIDEO = 706;
+int const PlayerProperty::IGNORE_AUDIO = 707;
+int const PlayerProperty::IGNORE_TEXT = 708;
+int const PlayerProperty::ALWAYS_BURN_OPEN_SUBTITLES = 709;
+int const PlayerProperty::PLAY_REFERENCED = 710;
 
 
 Player::Player (shared_ptr<const Film> film, Image::Alignment subtitle_alignment)
@@ -500,6 +505,7 @@ Player::get_subtitle_fonts ()
 void
 Player::set_ignore_video ()
 {
+       ChangeSignaller<Player, int> cc(this, PlayerProperty::IGNORE_VIDEO);
        _ignore_video = true;
        setup_pieces();
 }
@@ -508,6 +514,7 @@ Player::set_ignore_video ()
 void
 Player::set_ignore_audio ()
 {
+       ChangeSignaller<Player, int> cc(this, PlayerProperty::IGNORE_AUDIO);
        _ignore_audio = true;
        setup_pieces();
 }
@@ -516,6 +523,7 @@ Player::set_ignore_audio ()
 void
 Player::set_ignore_text ()
 {
+       ChangeSignaller<Player, int> cc(this, PlayerProperty::IGNORE_TEXT);
        _ignore_text = true;
        setup_pieces();
 }
@@ -525,6 +533,7 @@ Player::set_ignore_text ()
 void
 Player::set_always_burn_open_subtitles ()
 {
+       ChangeSignaller<Player, int> cc(this, PlayerProperty::ALWAYS_BURN_OPEN_SUBTITLES);
        _always_burn_open_subtitles = true;
 }
 
@@ -541,6 +550,7 @@ Player::set_fast ()
 void
 Player::set_play_referenced ()
 {
+       ChangeSignaller<Player, int> cc(this, PlayerProperty::PLAY_REFERENCED);
        _play_referenced = true;
        setup_pieces();
 }
index 7f30bf88c5521ed2607d90eaa7a8ba215636ae0a..0d288824e8d28eaf359ec9396fc54a362a01e17f 100644 (file)
@@ -63,6 +63,11 @@ public:
        static int const FILM_VIDEO_FRAME_RATE;
        static int const DCP_DECODE_REDUCTION;
        static int const PLAYBACK_LENGTH;
+       static int const IGNORE_VIDEO;
+       static int const IGNORE_AUDIO;
+       static int const IGNORE_TEXT;
+       static int const ALWAYS_BURN_OPEN_SUBTITLES;
+       static int const PLAY_REFERENCED;
 };