diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-11 11:06:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-11 11:06:41 +0100 |
| commit | 4985bbd615df73bf92fa14ba5cd585aa051e5b12 (patch) | |
| tree | 5f27320816621bb1455e80a629340b8254a76391 | |
| parent | ef9eef051d1f9eb09b7950cde482266531eba26a (diff) | |
Prevent crash when there is no subtitle after there having been one.
| -rw-r--r-- | src/lib/player.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index 58ba57bdc..467f92374 100644 --- 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); |
