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 /src/lib | |
| parent | bca3a59610be52cd54fdc9e548a3b8feca71fb23 (diff) | |
Fix exception when seeking with missing content.
Reported-by: lukegb
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/player.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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? */ |
