summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzmike <michael.blumenkrantz@gmail.com>2015-09-08 22:27:35 -0400
committerzmike <michael.blumenkrantz@gmail.com>2015-09-08 22:33:22 -0400
commit2157ed3e66d862ecdfe45e2426155253028c84a6 (patch)
tree24ed6c312d0d2afd3835bf582ae32a83af35dc8b /src
parent9ada1350eaa70c27e831f99c5d6fda87262cdf85 (diff)
force updates on current song info display when queue list updates
should improve handling when metadata for current song is changed
Diffstat (limited to 'src')
-rw-r--r--src/bin/empc.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/bin/empc.c b/src/bin/empc.c
index b81f0dc..84792f1 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -2896,7 +2896,21 @@ queue_list_handler(Eina_Value *value, Eina_Bool cached)
2896 eina_hash_add(empd_current_queue, &so->songid, it); 2896 eina_hash_add(empd_current_queue, &so->songid, it);
2897 } 2897 }
2898 if (so->songid == empd_songid) 2898 if (so->songid == empd_songid)
2899 empd_song_item = it; 2899 {
2900 Eina_Bool title;
2901
2902 empd_song_item = it;
2903 /* force updates in case song info has changed */
2904 if ((so->artist != empd_song_artist) || (so->album != empd_song_album))
2905 bg_update(bg_next_get(), so->artist, so->album, so->uri);
2906 eina_stringshare_refplace(&empd_song_album, so->album);
2907 title = eina_stringshare_refplace(&empd_song_title, so->title);
2908 if (title || (empd_song_track != so->track))
2909 elm_object_signal_emit(layout, "empc,title,change,next", "empc");
2910 empd_song_track = so->track;
2911 if (eina_stringshare_refplace(&empd_song_artist, so->artist) || title)
2912 title_update();
2913 }
2900 if ((album != so->album) || (artist != so->artist)) 2914 if ((album != so->album) || (artist != so->artist))
2901 { 2915 {
2902 if (itl) 2916 if (itl)