|
From: <mla...@us...> - 2007-11-18 23:16:22
|
Revision: 317
http://g15daemon.svn.sourceforge.net/g15daemon/?rev=317&view=rev
Author: mlampard
Date: 2007-11-18 15:16:25 -0800 (Sun, 18 Nov 2007)
Log Message:
-----------
Dont display previous name if current track has NULL name field. (Nedko)
Modified Paths:
--------------
trunk/g15daemon-audio-plugins/g15mpd/ChangeLog
trunk/g15daemon-audio-plugins/g15mpd/g15mpd.c
Modified: trunk/g15daemon-audio-plugins/g15mpd/ChangeLog
===================================================================
--- trunk/g15daemon-audio-plugins/g15mpd/ChangeLog 2007-11-18 23:07:15 UTC (rev 316)
+++ trunk/g15daemon-audio-plugins/g15mpd/ChangeLog 2007-11-18 23:16:25 UTC (rev 317)
@@ -6,3 +6,4 @@
- best used with g15daemon wip
- Respond to volume wheel & mute button
- Improve responsiveness
+- Fix display if stream name is NULL
Modified: trunk/g15daemon-audio-plugins/g15mpd/g15mpd.c
===================================================================
--- trunk/g15daemon-audio-plugins/g15mpd/g15mpd.c 2007-11-18 23:07:15 UTC (rev 316)
+++ trunk/g15daemon-audio-plugins/g15mpd/g15mpd.c 2007-11-18 23:16:25 UTC (rev 317)
@@ -545,10 +545,16 @@
mpd_Song *song = mpd_playlist_get_current_song(mi);
if(song) {
- if(song->artist!=NULL)
+ if (song->artist!=NULL) {
strncpy(track_info.artist,song->artist,99);
- if(song->title!=NULL)
+ } else {
+ track_info.artist[0] = 0;
+ }
+ if (song->title!=NULL) {
strncpy(track_info.title,song->title,99);
+ } else {
+ track_info.title[0] = 0;
+ }
}
if(what&MPD_CST_CROSSFADE){
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|