[rhythmbox] widget: reset elapsed time when song changes



commit e154c103f2053dd27863972685c860cfa0274cec
Author: Ross Lagerwall <rosslagerwall gmail com>
Date:   Sat Apr 13 18:08:01 2013 +0100

    widget: reset elapsed time when song changes
    
    This stops a brief flicker sometimes visible where
    rb_header_playing_song_changed_cb is called before
    rb_header_elapsed_changed_cb and so the duration of the song is
    updated but the previous elapsed time still remains. It causes a
    flicker of the incorrect time remaining and the progress slider to
    briefly move to a new location.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697959

 widgets/rb-header.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/widgets/rb-header.c b/widgets/rb-header.c
index c57b704..3cb43cd 100644
--- a/widgets/rb-header.c
+++ b/widgets/rb-header.c
@@ -492,6 +492,7 @@ rb_header_playing_song_changed_cb (RBShellPlayer *player, RhythmDBEntry *entry,
        rb_fading_image_start (RB_FADING_IMAGE (header->priv->image), 2000);
 
        header->priv->entry = entry;
+       header->priv->elapsed_time = 0;
        if (header->priv->entry) {
                RBExtDBKey *key;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]