summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/itdb.h5
-rw-r--r--src/itdb_track.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/src/itdb.h b/src/itdb.h
index 6a1e64c..631a152 100644
--- a/src/itdb.h
+++ b/src/itdb.h
@@ -950,6 +950,11 @@ struct _Itdb_Track
gpointer reserved5;
gpointer reserved6;
+ /* +++***+++***+++***+++***+++***+++***+++***+++***+++***+++***
+ When adding string fields don't forget to add them in
+ itdb_track_duplicate as well
+ +++***+++***+++***+++***+++***+++***+++***+++***+++***+++*** */
+
/* below is for use by application */
guint64 usertype;
gpointer userdata;
diff --git a/src/itdb_track.c b/src/itdb_track.c
index 23cae60..fc632a3 100644
--- a/src/itdb_track.c
+++ b/src/itdb_track.c
@@ -363,6 +363,13 @@ Itdb_Track *itdb_track_duplicate (Itdb_Track *tr)
tr_dup->albumartist = g_strdup (tr->albumartist);
tr_dup->keywords = g_strdup (tr->keywords);
tr_dup->ipod_path = g_strdup (tr->ipod_path);
+ tr_dup->sort_artist = g_strdup (tr->sort_artist);
+ tr_dup->sort_title = g_strdup (tr->sort_title);
+ tr_dup->sort_album = g_strdup (tr->sort_album);
+ tr_dup->sort_albumartist = g_strdup (tr->sort_albumartist);
+ tr_dup->sort_composer = g_strdup (tr->sort_composer);
+ tr_dup->sort_tvshow = g_strdup (tr->sort_tvshow);
+
/* Copy chapterdata */
if (tr->chapterdata_raw)