summaryrefslogtreecommitdiff
path: root/src/wx/simple_video_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-11-20 22:18:33 +0100
committerCarl Hetherington <cth@carlh.net>2020-01-08 21:56:47 +0100
commit83c9e9c858072ab919916269790dcc65565fdd25 (patch)
treeec0dc30ff0bd6b15fbd281893576536b82c22190 /src/wx/simple_video_view.cc
parent4f7e9f125716a27ed9e2a8e30f067100cbee773a (diff)
Don't try opening error dialogues from the GL thread.
Diffstat (limited to 'src/wx/simple_video_view.cc')
-rw-r--r--src/wx/simple_video_view.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wx/simple_video_view.cc b/src/wx/simple_video_view.cc
index 7aeb317b2..f928770ad 100644
--- a/src/wx/simple_video_view.cc
+++ b/src/wx/simple_video_view.cc
@@ -194,6 +194,12 @@ SimpleVideoView::display_next_frame (bool non_blocking)
display_player_video ();
+ try {
+ _viewer->butler()->rethrow ();
+ } catch (DecodeError& e) {
+ error_dialog (get(), e.what());
+ }
+
return true;
}