]> git.tuebingen.mpg.de Git - paraslash.git/commit
Fix handling of invalid entries in the score table.
authorAndre Noll <maan@systemlinux.org>
Sun, 18 Nov 2007 19:59:49 +0000 (20:59 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 18 Nov 2007 19:59:49 +0000 (20:59 +0100)
commit965eae5ba6664349ff74977439f3214142a3bc9a
tree049d43b244e013035cbb3cfed3e04df593e9bbcc
parentc47aa3e188e0e51b4dfdf957a140177bfc03a8da
Fix handling of invalid entries in the score table.

It may happen that the score table contains references to files that
no longer exist in the file system. The current code fails badly in
this case.

In open_next_audio_file(), if the file corresponding to the next
entry in the score table can not be opened, delete this entry from
the score table and try the next entry.

If the score table becomes empty, send NO_ADMISSIBLE_FILES back to para_server
and make recv_afs_result() switch to stop mode in this case.
afs.c
afs.h
error.h
vss.c