From 137d19d621a4b5ada4bfc2c5a31701a3cded1c14 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 21 Jun 2010 23:42:44 -0300 Subject: [PATCH] tag: Adds GST_TAG_DATE_TIME tag Adds a new tag that represents a date and time a media was created API: GST_TAG_DATE_TIME Fixes #594504 --- docs/gst/gstreamer-sections.txt | 1 + gst/gsttaglist.c | 4 ++++ gst/gsttaglist.h | 7 +++++++ 3 files changed, 12 insertions(+) diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index 868ca12..7a4b833 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -2145,6 +2145,7 @@ GST_TAG_ALBUM_SORTNAME GST_TAG_ALBUM_ARTIST GST_TAG_ALBUM_ARTIST_SORTNAME GST_TAG_DATE +GST_TAG_DATE_TIME GST_TAG_GENRE GST_TAG_COMMENT GST_TAG_EXTENDED_COMMENT diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index bacbe45..9772733 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -127,6 +127,10 @@ _gst_tag_initialize (void) _("The artist of the entire album, as it should be sorted"), NULL); gst_tag_register (GST_TAG_DATE, GST_TAG_FLAG_META, GST_TYPE_DATE, _("date"), _("date the data was created (as a GDate structure)"), NULL); + gst_tag_register (GST_TAG_DATE_TIME, GST_TAG_FLAG_META, GST_TYPE_DATE_TIME, + _("datetime"), + _("date and time the data was created (as a GstDateTime structure)"), + NULL); gst_tag_register (GST_TAG_GENRE, GST_TAG_FLAG_META, G_TYPE_STRING, _("genre"), diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h index bafa647..d5cdb7a 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -468,6 +468,13 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list, */ #define GST_TAG_DATE "date" /** + * GST_TAG_DATE_TIME: + * date and time the data was created (#GstDateTime structure) + * + * Since: 0.10.31 + */ +#define GST_TAG_DATE_TIME "datetime" +/** * GST_TAG_GENRE: * * genre this data belongs to (string) -- 2.7.4