playlist_control: "previous" really plays the previous song

No more CD player emulation.  The current behaviour of "previous" is
difficult for a client to predict, because it does not definitely know
the current position within the song.  If a client wants to restart
the current song, it can always send "playid".
This commit is contained in:
Max Kellermann
2009-10-08 20:33:50 +02:00
parent aa71ce4cd5
commit a5960c20cc
4 changed files with 13 additions and 39 deletions

View File

@@ -62,16 +62,12 @@ playlist_init(struct playlist *playlist)
playlist->queued = -1;
playlist->current = -1;
playlist->prev_elapsed = g_timer_new();
}
void
playlist_finish(struct playlist *playlist)
{
queue_finish(&playlist->queue);
g_timer_destroy(playlist->prev_elapsed);
}
/**