[sound-juicer] Add composer field to track data
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sound-juicer] Add composer field to track data
- Date: Sat, 16 Jun 2012 11:28:13 +0000 (UTC)
commit 7c06bb43bba827bfbad133a702b8fc2d452115e2
Author: Phillip Wood <phillip wood dunelm org uk>
Date: Sun May 13 13:02:54 2012 +0100
Add composer field to track data
https://bugzilla.gnome.org/show_bug.cgi?id=661646
libjuicer/sj-structures.c | 1 +
libjuicer/sj-structures.h | 1 +
src/sj-prefs.c | 1 +
3 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libjuicer/sj-structures.c b/libjuicer/sj-structures.c
index 4c8fb7a..ccd25ea 100644
--- a/libjuicer/sj-structures.c
+++ b/libjuicer/sj-structures.c
@@ -32,6 +32,7 @@ void track_details_free(TrackDetails *track)
g_return_if_fail (track != NULL);
g_free (track->title);
g_free (track->artist);
+ g_free (track->composer);
g_free (track->track_id);
g_free (track->artist_id);
g_free (track->artist_sortname);
diff --git a/libjuicer/sj-structures.h b/libjuicer/sj-structures.h
index dc34951..468496a 100644
--- a/libjuicer/sj-structures.h
+++ b/libjuicer/sj-structures.h
@@ -46,6 +46,7 @@ struct _TrackDetails {
char *title;
char *artist;
char* artist_sortname; /* Can be NULL, so fall back onto artist */
+ char* composer;
int duration; /* seconds */
char* track_id;
char* artist_id;
diff --git a/src/sj-prefs.c b/src/sj-prefs.c
index 43bb000..a15c1de 100644
--- a/src/sj-prefs.c
+++ b/src/sj-prefs.c
@@ -261,6 +261,7 @@ static void pattern_label_update (void)
.title = "Ticket To Ride", /* title */
.artist = "The Beatles", /* artist */
.artist_sortname = "Beatles, The", /* sortname */
+ .composer = "John Lennon and Paul McCartney", /* composer */
.duration = 0, /* duration */
.track_id = NULL, /* track ID */
.artist_id = NULL, /* artist ID */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]