summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-25 16:19:29 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-25 16:19:29 +0100
commit3f91fde9095524adf05e8fdc5d50dbfea391dd4f (patch)
tree12ab05bb17e48e771598c173497a64000ad1ab48 /streamer.c
parent1bcaa50b1fed3bc76f929c788b2bbfeb17927040 (diff)
minor tweaks to bitrate display
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/streamer.c b/streamer.c
index 0ecf8e7f..6a74edb8 100644
--- a/streamer.c
+++ b/streamer.c
@@ -306,6 +306,8 @@ streamer_thread (void *ctx) {
p_stop ();
}
else if (pstate == 1) {
+ last_bitrate = -1;
+ avg_bitrate = -1;
p_play ();
}
else if (pstate == 2) {
@@ -358,6 +360,7 @@ streamer_thread (void *ctx) {
// copy streaming into playing
pl_item_copy (&str_playing_song, &str_streaming_song);
last_bitrate = -1;
+ avg_bitrate = -1;
orig_playing_song = orig_streaming_song;
if (orig_playing_song) {
orig_playing_song->played = 1;