-void
-SwaroopControls::image_changed (boost::weak_ptr<PlayerVideo> weak_pv)
-{
- shared_ptr<PlayerVideo> pv = weak_pv.lock ();
- if (!pv) {
- return;
- }
-
- shared_ptr<Content> c = pv->content().lock();
- if (!c) {
- return;
- }
-
- if (c == _current_content.lock()) {
- return;
- }
-
- _current_content = c;
-
- if (_selected_playlist) {
- BOOST_FOREACH (SPLEntry i, _playlists[*_selected_playlist].get()) {
- if (i.content == c) {
- _current_disable_timeline = i.disable_timeline;
- setup_sensitivity ();
- }
- }
- }
-
- shared_ptr<DCPContent> dc = dynamic_pointer_cast<DCPContent> (c);
- if (!dc) {
- return;
- }
-
- if (!_current_kind || *_current_kind != dc->content_kind()) {
- _current_kind = dc->content_kind ();
- setup_sensitivity ();
- }
-}
-