From a1b0ed4ac0753b420ce8ab8467165e220bdb4b05 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 16 Oct 2013 10:11:54 +0100 Subject: No need to rebuild pieces when only crop or ratio changes. --- src/lib/player.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/player.cc b/src/lib/player.cc index 03c5dc322..d13ae5f3c 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -506,17 +506,22 @@ Player::content_changed (weak_ptr 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); } } -- cgit v1.2.3