diff options
Diffstat (limited to 'src/wx/video_waveform_plot.cc')
| -rw-r--r-- | src/wx/video_waveform_plot.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wx/video_waveform_plot.cc b/src/wx/video_waveform_plot.cc index 9674d0af2..866f5f568 100644 --- a/src/wx/video_waveform_plot.cc +++ b/src/wx/video_waveform_plot.cc @@ -192,18 +192,16 @@ note () } void -VideoWaveformPlot::set_image (weak_ptr<PlayerVideo> image) +VideoWaveformPlot::set_image (shared_ptr<PlayerVideo> image) { if (!_enabled) { return; } - shared_ptr<PlayerVideo> pv = image.lock (); - DCPOMATIC_ASSERT (pv); /* We must copy the PlayerVideo here as we will call ::image() on it, potentially with a different pixel_format than was used when ::prepare() was called. */ - _image = DCPVideo::convert_to_xyz (pv->shallow_copy(), boost::bind (¬e)); + _image = DCPVideo::convert_to_xyz (image->shallow_copy(), boost::bind(¬e)); _dirty = true; Refresh (); } |
