Fix timeline for DCPs containing Atmos.
[dcpomatic.git] / 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)));
                }
 
-               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)));
                }
        }