summaryrefslogtreecommitdiff
path: root/src/wx/video_waveform_plot.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-05 22:12:27 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-05 22:56:23 +0100
commitd1addc203597a892c02bd162585c6a55950ffaf5 (patch)
treee4f86abdbdc4269ec461f001766018f31e446f4f /src/wx/video_waveform_plot.cc
parenta6929b79a5f6167600a2d2bfc4e1ef1dc4796665 (diff)
Fix video waveform view with GL backend.
Diffstat (limited to 'src/wx/video_waveform_plot.cc')
-rw-r--r--src/wx/video_waveform_plot.cc6
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 (&note));
+ _image = DCPVideo::convert_to_xyz (image->shallow_copy(), boost::bind(&note));
_dirty = true;
Refresh ();
}