summaryrefslogtreecommitdiff
path: root/src/wx/video_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-02-14 01:05:18 +0100
committerCarl Hetherington <cth@carlh.net>2023-02-14 01:05:18 +0100
commit7b9c6d3afa80e3c299e30aa11d47253bbc5a8fa8 (patch)
tree280398a122f5c07f5f437428f6ac98a4acc62020 /src/wx/video_view.cc
parent795de4ac5c56c722556cd4c914a11eddcb323343 (diff)
wip: Error when failing to read MXF frame.bad-mxf
Diffstat (limited to 'src/wx/video_view.cc')
-rw-r--r--src/wx/video_view.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wx/video_view.cc b/src/wx/video_view.cc
index c271cb65e..91bd0d6af 100644
--- a/src/wx/video_view.cc
+++ b/src/wx/video_view.cc
@@ -90,6 +90,8 @@ VideoView::get_next_frame (bool non_blocking)
_player_video.first->eyes() != Eyes::BOTH
);
+ // XXX: this is too early to check this; error() is only set up when image/make_image is called
+ // on the _player_video, which might not have happened yet (though it could have, with the prepare() stuff)
if (_player_video.first && _player_video.first->error()) {
++_errored;
}