projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
175146a
)
Fix infinite loop if we try to get a frame from a decoder that doesn't have one to...
author
Carl Hetherington
<cth@carlh.net>
Mon, 17 Dec 2012 16:35:09 +0000
(16:35 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 17 Dec 2012 16:35:09 +0000
(16:35 +0000)
src/wx/film_viewer.cc
patch
|
blob
|
history
diff --git
a/src/wx/film_viewer.cc
b/src/wx/film_viewer.cc
index 78b104d2024e47c10c1aa357ecf0538e5a36d076..765bff02f57bc61b0b5fed6da017e516b39aec6b 100644
(file)
--- a/
src/wx/film_viewer.cc
+++ b/
src/wx/film_viewer.cc
@@
-310,6
+310,8
@@
FilmViewer::get_frame ()
shared_ptr<Image> last = _display_frame;
while (last == _display_frame) {
- _decoders.video->pass ();
+ if (_decoders.video->pass ()) {
+ break;
+ }
}
}