mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
spc: extract year as GstDateTime instead of GDate
This commit is contained in:
parent
a39b6cc1b8
commit
8588b5aab8
1 changed files with 4 additions and 3 deletions
|
@ -491,10 +491,11 @@ spc_setup (GstSpcDec * spc)
|
||||||
gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_ALBUM, info->game,
|
gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_ALBUM, info->game,
|
||||||
NULL);
|
NULL);
|
||||||
if (info->year) {
|
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);
|
gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_DATE_TIME, dt,
|
||||||
g_date_free (date);
|
NULL);
|
||||||
|
gst_date_time_unref (dt);
|
||||||
}
|
}
|
||||||
if (info->track) {
|
if (info->track) {
|
||||||
gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_TRACK_NUMBER,
|
gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE, GST_TAG_TRACK_NUMBER,
|
||||||
|
|
Loading…
Reference in a new issue