From f64c80e4415fda3e7c7136b245086609cd605a50 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 8 Feb 2014 22:17:28 +0000 Subject: Fix exception when seeking with missing content. Reported-by: lukegb --- src/lib/player.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib') 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 (new Piece (*i)); /* XXX: into content? */ -- cgit v1.2.3