Remove the preload lock if there is an error initializing the playlist.

This commit is contained in:
paul 2006-12-01 19:55:21 +00:00
parent 3b481ec39c
commit 38d5c776cd
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ SchedulerThread :: nextStep(Ptr<ptime>::Ref now) throw ()
try {
nextEvent->initialize();
} catch (std::exception &e) {
pthread_mutex_unlock(&preloadLock);
// cancel event by getting the next event after this was
// supposed to finish
getNextEvent(nextEventEnd);