diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-02-08 22:17:28 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-02-08 22:17:28 +0000 |
| commit | f64c80e4415fda3e7c7136b245086609cd605a50 (patch) | |
| tree | 7a71d7dbee4c292cc35e19a0a4c991aa9853c191 | |
| parent | bca3a59610be52cd54fdc9e548a3b8feca71fb23 (diff) | |
Fix exception when seeking with missing content.
Reported-by: lukegb
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | src/lib/player.cc | 4 |
2 files changed, 6 insertions, 0 deletions
@@ -1,5 +1,7 @@ 2014-02-08 Carl Hetherington <cth@carlh.net> + * Fix exception when seeking with missing content (part of #317). + * Version 1.64.6 released. 2014-02-08 Carl Hetherington <cth@carlh.net> diff --git a/src/lib/player.cc b/src/lib/player.cc index 42551889b..49d954c58 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -456,6 +456,10 @@ Player::setup_pieces () for (ContentList::iterator i = content.begin(); i != content.end(); ++i) { + if (!(*i)->paths_valid ()) { + continue; + } + shared_ptr<Piece> piece (new Piece (*i)); /* XXX: into content? */ |
