X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftimeline.cc;h=31981deea7b4129e590715ca0a6146e2031f0839;hb=6f344b876689a1234a5eb75041882f06f5d9fe5c;hp=786d70721c5549498ceffbec0314df7039282b0b;hpb=36774ee2b48f0bfde43b743592e5816ff58bb7d2;p=dcpomatic.git diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index 786d70721..31981deea 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -145,7 +145,7 @@ Timeline::recreate_views () _views.push_back (_labels_view); BOOST_FOREACH (shared_ptr i, film->content ()) { - if (dynamic_pointer_cast (i)) { + if (i->video) { _views.push_back (shared_ptr (new TimelineVideoContentView (*this, i))); }