/* Display version number and terminate. */
static void version(void) {
- xprintf("disorder-speaker version %s\n", disorder_version_string);
+ xprintf("%s", disorder_version_string);
xfclose(stdout);
exit(0);
}
if(!playing->used || playing->start == (sizeof playing->buffer))
playing->start = 0;
/* If the buffer emptied out mark the track as unplayably */
- if(!playing->used) {
+ if(!playing->used && !playing->eof) {
error(0, "track buffer emptied");
playing->playable = 0;
}