changeset 532:04b0c54d16bb trunk

[svn] - if the performer of a track is not specified in cue sheet, the performer of the album will be used.
author yaz
date Tue, 23 Jan 2007 03:00:28 -0800
parents afd22b6d402c
children 2fa253251598
files ChangeLog src/cue/cuesheet.c
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Jan 22 22:23:12 2007 -0800
+++ b/ChangeLog	Tue Jan 23 03:00:28 2007 -0800
@@ -1,3 +1,12 @@
+2007-01-23 06:23:12 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [1148]
+  - update welsh translation:
+  415 translated messages, 13 untranslated messages.
+  
+  trunk/po/cy.po |   11 +++++++++--
+  1 file changed, 9 insertions(+), 2 deletions(-)
+
+
 2007-01-23 06:14:42 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [1146]
   - update welsh translation:
--- a/src/cue/cuesheet.c	Mon Jan 22 22:23:12 2007 -0800
+++ b/src/cue/cuesheet.c	Tue Jan 23 03:00:28 2007 -0800
@@ -24,6 +24,7 @@
 #include <audacious/playlist.h>
 #include <audacious/vfs.h>
 #include <audacious/util.h>
+#include <audacious/strings.h>
 #include <audacious/main.h>
 #include <audacious/strings.h>
 
@@ -213,7 +214,8 @@
 	bmp_title_input_free(phys_tuple);
 
 	out->track_name = g_strdup(cue_tracks[track].title);
-	out->performer = g_strdup(cue_tracks[track].performer);
+	out->performer = g_strdup(cue_tracks[track].performer ?
+				  cue_tracks[track].performer : cue_performer);
 	out->album_name = g_strdup(cue_title);
 	out->genre = g_strdup(cue_genre);
 	out->year = cue_year ? atoi(cue_year) : 0;