From 8b4aa224882d2451f81c0a3ad07ec2d4ea098d5a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 2 Feb 2013 14:16:12 +0000 Subject: [PATCH] Stop playback if there is a problem with decoding (#39). --- src/wx/film_viewer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 7b8f02220..0b3fb0fd2 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -377,6 +377,8 @@ FilmViewer::get_frame () } } } catch (DecodeError& e) { + _play_button->SetValue (false); + check_play_state (); error_dialog (this, String::compose ("Could not decode video for view (%1)", e.what())); } } -- 2.30.2