[rhythmbox] encoder: set GST_TAG_DATE_TIME as well as GST_TAG_DATE
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] encoder: set GST_TAG_DATE_TIME as well as GST_TAG_DATE
- Date: Fri, 25 Dec 2015 06:48:44 +0000 (UTC)
commit f7b36104e25fab37c47177f3d0842d828471d0c2
Author: Yann R <yradenac free fr>
Date: Fri Dec 25 16:47:15 2015 +1000
encoder: set GST_TAG_DATE_TIME as well as GST_TAG_DATE
https://bugzilla.gnome.org/show_bug.cgi?id=733830
backends/gstreamer/rb-encoder-gst.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/backends/gstreamer/rb-encoder-gst.c b/backends/gstreamer/rb-encoder-gst.c
index 4623ac8..68c74c3 100644
--- a/backends/gstreamer/rb-encoder-gst.c
+++ b/backends/gstreamer/rb-encoder-gst.c
@@ -331,11 +331,21 @@ add_tags_from_entry (RBEncoderGst *encoder,
if (day > 0) {
GDate *date;
+ GstDateTime *datetime;
date = g_date_new_julian (day);
gst_tag_list_add (tags, GST_TAG_MERGE_APPEND,
GST_TAG_DATE, date,
NULL);
+
+ datetime = gst_date_time_new_ymd (g_date_get_year (date),
+ g_date_get_month (date),
+ g_date_get_day (date));
+ gst_tag_list_add (tags, GST_TAG_MERGE_APPEND,
+ GST_TAG_DATE_TIME, datetime,
+ NULL);
+
+ gst_date_time_unref (datetime);
g_date_free (date);
}
add_string_tag (tags, GST_TAG_MERGE_APPEND, GST_TAG_MUSICBRAINZ_TRACKID, entry,
RHYTHMDB_PROP_MUSICBRAINZ_TRACKID);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]