diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-08-18 16:30:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-08-18 16:30:33 +0100 |
| commit | 888eedd469b461cd51a384518e075dbee9f6834f (patch) | |
| tree | c15cd911fbf5a679afdcc167a047f6cea06e34af /src | |
| parent | c8272a73a9eed6d1f1d856a7aa9ddb8fc87c385e (diff) | |
Fix crash when updating timing panel.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/timing_panel.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wx/timing_panel.cc b/src/wx/timing_panel.cc index 38891fb0e..aa4f70a81 100644 --- a/src/wx/timing_panel.cc +++ b/src/wx/timing_panel.cc @@ -166,9 +166,10 @@ TimingPanel::film_content_changed (int property) set<float> check; shared_ptr<VideoContent> vc; for (ContentList::const_iterator i = cl.begin (); i != cl.end(); ++i) { - vc = dynamic_pointer_cast<VideoContent> (*i); - if (vc) { - check.insert (vc->video_frame_rate ()); + shared_ptr<VideoContent> t = dynamic_pointer_cast<VideoContent> (*i); + if (t) { + check.insert (t->video_frame_rate ()); + vc = t; } } if (check.size() == 1) { |
