diff options
Diffstat (limited to 'src/wx/film_viewer.cc')
| -rw-r--r-- | src/wx/film_viewer.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 33af202bc..e517c9cca 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -150,9 +150,9 @@ FilmViewer::get (DCPTime p, bool accurate) return; } - shared_ptr<DCPVideo> dcp_video = _player->get_video (p, accurate); - if (dcp_video) { - _frame = dcp_video->image (PIX_FMT_BGRA, true); + list<shared_ptr<DCPVideo> > dcp_video = _player->get_video (p, accurate); + if (!dcp_video.empty ()) { + _frame = dcp_video.front()->image (PIX_FMT_BGRA, true); _frame = _frame->scale (_frame->size(), Scaler::from_id ("fastbilinear"), PIX_FMT_RGB24, false); } else { _frame.reset (); |
