No need to rebuild pieces when only crop or ratio changes.
authorCarl Hetherington <cth@carlh.net>
Wed, 16 Oct 2013 09:11:54 +0000 (10:11 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 16 Oct 2013 09:11:54 +0000 (10:11 +0100)
src/lib/player.cc

index 03c5dc3220333fd67ec67c81e3d422a5089b11ca..d13ae5f3cb8588fbb6b96dab72ed9f54c22745d4 100644 (file)
@@ -506,17 +506,22 @@ Player::content_changed (weak_ptr<Content> w, int property, bool frequent)
 
        if (
                property == ContentProperty::POSITION || property == ContentProperty::LENGTH ||
-               property == ContentProperty::TRIM_START || property == ContentProperty::TRIM_END ||
-               property == VideoContentProperty::VIDEO_CROP || property == VideoContentProperty::VIDEO_RATIO
+               property == ContentProperty::TRIM_START || property == ContentProperty::TRIM_END
                ) {
                
                _have_valid_pieces = false;
                Changed (frequent);
 
        } else if (property == SubtitleContentProperty::SUBTITLE_OFFSET || property == SubtitleContentProperty::SUBTITLE_SCALE) {
+
                update_subtitle ();
                Changed (frequent);
-       } else if (property == VideoContentProperty::VIDEO_FRAME_TYPE) {
+
+       } else if (
+               property == VideoContentProperty::VIDEO_FRAME_TYPE || property == VideoContentProperty::VIDEO_CROP ||
+               property == VideoContentProperty::VIDEO_RATIO
+               ) {
+               
                Changed (frequent);
        }
 }