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 cbea233..c9a6dc9 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)));
                }
        }