diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-10-16 10:11:54 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-10-16 10:11:54 +0100 |
| commit | a1b0ed4ac0753b420ce8ab8467165e220bdb4b05 (patch) | |
| tree | 22dc4afd3a618cf6f03f1212c027a8d895505d83 /src/lib | |
| parent | 9346c5a5f00ee853d748477c409f5e760e8f7222 (diff) | |
No need to rebuild pieces when only crop or ratio changes.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/player.cc | 11 |
1 files changed, 8 insertions, 3 deletions
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<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); } } |
