diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-14 22:16:27 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-14 22:16:27 +0200 |
| commit | 4ab86ef0295bcd6bb9297996a06006f371d22bae (patch) | |
| tree | fefc1706a67a10f6aa1a7c5d576e5cb8826ce950 /src/wx/video_view.cc | |
| parent | 3b31d2d8a129ae6d8d267427bd6b5bc444b40b2a (diff) | |
Ignore and report failures to decode frames during playback (#1593).
Diffstat (limited to 'src/wx/video_view.cc')
| -rw-r--r-- | src/wx/video_view.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wx/video_view.cc b/src/wx/video_view.cc index 014524757..b9c45631e 100644 --- a/src/wx/video_view.cc +++ b/src/wx/video_view.cc @@ -38,6 +38,7 @@ VideoView::VideoView (FilmViewer* viewer) , _eyes (EYES_LEFT) , _three_d (false) , _dropped (0) + , _errored (0) , _gets (0) { @@ -83,6 +84,10 @@ VideoView::get_next_frame (bool non_blocking) _player_video.first->eyes() != EYES_BOTH ); + if (_player_video.first && _player_video.first->error()) { + ++_errored; + } + return true; } @@ -114,6 +119,7 @@ VideoView::start () { boost::mutex::scoped_lock lm (_mutex); _dropped = 0; + _errored = 0; } bool |
