projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef9eef0
)
Prevent crash when there is no subtitle after there having been one.
author
Carl Hetherington
<cth@carlh.net>
Thu, 11 Jul 2013 10:06:41 +0000
(11:06 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 11 Jul 2013 10:06:41 +0000
(11:06 +0100)
src/lib/player.cc
patch
|
blob
|
history
diff --git
a/src/lib/player.cc
b/src/lib/player.cc
index 58ba57bdcd2b25dde49a8d08fe6601f8923ac32a..467f92374e66fcdd332090b49550c2aafc87b524 100644
(file)
--- a/
src/lib/player.cc
+++ b/
src/lib/player.cc
@@
-521,6
+521,11
@@
Player::update_subtitle ()
return;
}
+ if (!_in_subtitle.image) {
+ _out_subtitle.image.reset ();
+ return;
+ }
+
shared_ptr<SubtitleContent> sc = dynamic_pointer_cast<SubtitleContent> (piece->content);
assert (sc);