changeset 357:c4b4c6011c66 trunk

[svn] - fix for potential bug.
author yaz
date Sun, 10 Dec 2006 22:10:32 -0800
parents 35b5161ba78d
children bc3bae2880ec
files ChangeLog src/cue/cuesheet.c
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Dec 10 20:33:47 2006 -0800
+++ b/ChangeLog	Sun Dec 10 22:10:32 2006 -0800
@@ -1,3 +1,13 @@
+2006-12-11 04:33:47 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [780]
+  cuesheet improvement:
+  - can fill all visible tuple elements
+  - support "stop after current song"
+  
+  trunk/src/cue/cuesheet.c |   68 +++++++++++++++++++++++++++++++++++------------
+  1 file changed, 52 insertions(+), 16 deletions(-)
+
+
 2006-12-10 09:53:35 +0000  Kiyoshi Aman <kiyoshi.aman@gmail.com>
   revision [778]
   Move supported formats to plugin info, rename plugin to 'Game console audio module decoder'.
--- a/src/cue/cuesheet.c	Sun Dec 10 20:33:47 2006 -0800
+++ b/src/cue/cuesheet.c	Sun Dec 10 22:10:32 2006 -0800
@@ -215,7 +215,7 @@
 	out->performer = g_strdup(cue_tracks[track].performer);
 	out->album_name = g_strdup(cue_title);
 	out->genre = g_strdup(cue_genre);
-	out->year = atoi(cue_year);
+	out->year = cue_year ? atoi(cue_year) : 0;
 	out->track_number = track + 1;
 	return out;
 }