From: David B. <dav...@gm...> - 2010-03-24 15:36:25
|
Kosnickx was asking what happens if files are deleted from a playlist. With a normal playlist(), you can delete most files and liquidsoap won't complain: they are not checked in advance, so nothing is expected. All that will happen is that liquidsoap will pick an URI (filename) and try to "resolve" it, and fail, and go to the next one -- the worst that happens is that you waste a tenth of a second maybe. If you remove the file that is currently being played, it shouldn't even be a problem under linux because the file will be kept existing as long as liquidsoap has it open. The only bad situation is if you remove a file after that liquidsoap has "resolved" (checked) it, but before it has opened it for playing: but even this doesn't cause a crash, only a warning in the logs. With playlist.safe() liquidsoap checks in advance that all URI are valid local files, so you can probably crash liquidsoap if you betray him by deleting such files. |