Fix crash on startup.
authorCarl Hetherington <cth@carlh.net>
Tue, 14 Feb 2017 09:53:22 +0000 (09:53 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 19 Apr 2017 22:04:32 +0000 (23:04 +0100)
src/wx/film_viewer.cc

index c17927ac5bc0de8d483004ed4c41dcd69c9bbb16..a5371fcf0adcdffbe48b6523104629f7dd278c45 100644 (file)
@@ -570,6 +570,10 @@ FilmViewer::jump_to_selected_clicked ()
 void
 FilmViewer::seek (DCPTime t, bool accurate)
 {
+       if (!_player) {
+               return;
+       }
+
        _player->seek (t, accurate);
        _last_seek_accurate = accurate;
        get ();