diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2012-07-16 00:05:26 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-07-17 21:00:21 +0100 |
commit | 8588b5aab82469c019c38f1413c568200d8fa073 (patch) | |
tree | dfacfee940d5b9d00af479aa6e1caf2877505bc3 /ext/spc | |
parent | a39b6cc1b8bb71deb3a86d6e11f682c4abd9d728 (diff) | |
download | gstreamer-plugins-bad-8588b5aab82469c019c38f1413c568200d8fa073.tar.gz |
spc: extract year as GstDateTime instead of GDate
Diffstat (limited to 'ext/spc')
-rw-r--r-- | ext/spc/gstspc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/spc/gstspc.c b/ext/spc/gstspc.c index e5950c576..2ea4ad806 100644 --- a/ext/spc/gstspc.c +++ b/ext/spc/gstspc.c @@ -491,10 +491,11 @@ spc_setup (GstSpcDec * spc) gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_ALBUM, info->game, NULL); if (info->year) { - GDate *date = g_date_new_dmy (1, 1, info->year); + GstDateTime *dt = gst_date_time_new_y (info->year); - gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_DATE, date, NULL); - g_date_free (date); + gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_DATE_TIME, dt, + NULL); + gst_date_time_unref (dt); } if (info->track) { gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_TRACK_NUMBER, |