summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-07-04 16:34:48 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-07-04 16:34:48 +0200
commit6aedb8d7378ea0d5eb773011d28bdf644bb8f54c (patch)
tree631d5c382c2dc4c7556d4aa9705888918958125d /streamer.c
parentcc01765399ded783c9d42802e1797558e1167748 (diff)
fixed seeking with global hotkeys
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/streamer.c b/streamer.c
index b77a3567..e5b67526 100644
--- a/streamer.c
+++ b/streamer.c
@@ -714,6 +714,7 @@ streamer_set_nextsong (int song, int pstate) {
// no sense to wait until end of previous song, reset buffer
bytes_until_next_song = 0;
playpos = 0;
+ seekpos = -1;
}
}
@@ -880,6 +881,7 @@ streamer_thread (void *ctx) {
avg_bitrate = -1;
playlist_track = playing_track;
playpos = 0;
+ seekpos = -1;
// try to switch samplerate to the closest supported by output plugin
if (conf_get_int ("playback.dynsamplerate", 0)) {