Fix timeline for DCPs containing Atmos.
authorCarl Hetherington <cth@carlh.net>
Fri, 19 Jun 2020 18:30:04 +0000 (20:30 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 19 Jun 2020 18:30:04 +0000 (20:30 +0200)
src/wx/timeline.cc

index cbea2333c8293d6dade6acfba38f6c6b749eb7d2..c9a6dc9f172e056d5e29310a98ac87fe9857ec40 100644 (file)
@@ -262,8 +262,8 @@ Timeline::recreate_views ()
                        _views.push_back (shared_ptr<TimelineView> (new TimelineTextContentView (*this, i, j)));
                }
 
                        _views.push_back (shared_ptr<TimelineView> (new TimelineTextContentView (*this, i, j)));
                }
 
-               if (dynamic_pointer_cast<AtmosMXFContent> (i)) {
-                       _views.push_back (shared_ptr<TimelineView> (new TimelineAtmosContentView (*this, i)));
+               if (i->atmos) {
+                       _views.push_back (shared_ptr<TimelineView>(new TimelineAtmosContentView(*this, i)));
                }
        }
 
                }
        }