diff options
author | 2009-09-26 17:37:11 +0200 | |
---|---|---|
committer | 2009-09-26 17:37:11 +0200 | |
commit | b7a4d6d7f4515c62a0a98629bc7bb2bc04ed8999 (patch) | |
tree | ebe7487bdefef4da1a7ccbae607df0728b5b0671 /streamer.c | |
parent | 924fe0de44b4facfa34b75eb1501a08f15d282f3 (diff) |
fixed shuffle playback mode
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -271,8 +271,10 @@ streamer_thread (uintptr_t ctx) { int to = orig_streaming_song ? pl_get_idx_of (orig_streaming_song) : -1; trace ("from=%d, to=%d\n", from, to); orig_playing_song = orig_streaming_song; - str_playing_song.played = 1; - str_playing_song.started_timestamp = time (NULL); + if (orig_playing_song) { + orig_playing_song->played = 1; + orig_playing_song->started_timestamp = time (NULL); + } playlist_current_ptr = orig_playing_song; // that is needed for playlist drawing trace ("sending songchanged\n"); |