summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>2009-12-21 11:58:12 -0300
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>2009-12-21 11:58:12 -0300
commita3078cf0cdb65c0080841c69aa21a6261e519ded (patch)
tree4faa3149984ba7122b9fec0d60bf6433c613fd59
parentdb1acc35207d1f894de324253a276c2832738269 (diff)
gsttaglist: Adds new tags
Adds the following new tags: GST_TAG_SHOW_NAME GST_TAG_SHOW_SORTNAME GST_TAG_SHOW_EPISODE_NUMBER GST_TAG_SHOW_SEASON_NUMBER GST_TAG_LYRICS GST_TAG_COMPOSER_SORTNAME GST_TAG_GROUPING Fixes #599759
-rw-r--r--docs/gst/gstreamer-sections.txt7
-rw-r--r--gst/gsttaglist.c27
-rw-r--r--gst/gsttaglist.h58
3 files changed, 91 insertions, 1 deletions
diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt
index 019ff8c44b..5fa9d21990 100644
--- a/docs/gst/gstreamer-sections.txt
+++ b/docs/gst/gstreamer-sections.txt
@@ -2176,6 +2176,13 @@ GST_TAG_GEO_LOCATION_NAME
GST_TAG_GEO_LOCATION_LATITUDE
GST_TAG_GEO_LOCATION_LONGITUDE
GST_TAG_GEO_LOCATION_ELEVATION
+GST_TAG_SHOW_NAME
+GST_TAG_SHOW_SORTNAME
+GST_TAG_SHOW_EPISODE_NUMBER
+GST_TAG_SHOW_SEASON_NUMBER
+GST_TAG_LYRICS
+GST_TAG_COMPOSER_SORTNAME
+GST_TAG_GROUPING
gst_tag_register
gst_tag_merge_use_first
diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c
index b87d6f3480..416defd286 100644
--- a/gst/gsttaglist.c
+++ b/gst/gsttaglist.c
@@ -285,6 +285,33 @@ _gst_tag_initialize (void)
_
("geo elevation of where the media has been recorded or produced in meters according to WGS84 (zero is average sea level)"),
NULL);
+ gst_tag_register (GST_TAG_SHOW_NAME, GST_TAG_FLAG_META, G_TYPE_STRING,
+ _("Name of the show"),
+ _("Name of the tv/podcast/series show the media is from"),
+ gst_tag_merge_strings_with_comma);
+ gst_tag_register (GST_TAG_SHOW_SORTNAME, GST_TAG_FLAG_META, G_TYPE_STRING,
+ _("Name of the show for sorting purposes"),
+ _("Name of the tv/podcast/series show the media is from, for sorting "
+ "purposes"), NULL);
+ gst_tag_register (GST_TAG_SHOW_EPISODE_NUMBER, GST_TAG_FLAG_META, G_TYPE_UINT,
+ _("Episode's number"),
+ _("The episode's number in the season the media is part of"),
+ gst_tag_merge_use_first);
+ gst_tag_register (GST_TAG_SHOW_SEASON_NUMBER, GST_TAG_FLAG_META, G_TYPE_UINT,
+ _("Season's number"),
+ _("The season's number of the show the media is part of"),
+ gst_tag_merge_use_first);
+ gst_tag_register (GST_TAG_LYRICS, GST_TAG_FLAG_META, G_TYPE_STRING,
+ _("Lyrics"), _("The lyrics of the media, commonly used for songs"),
+ gst_tag_merge_strings_with_comma);
+ gst_tag_register (GST_TAG_COMPOSER_SORTNAME, GST_TAG_FLAG_META, G_TYPE_STRING,
+ _("composer, for sorting purposes"),
+ _("person(s) who composed the recording, for sorting purposes"), NULL);
+ gst_tag_register (GST_TAG_GROUPING, GST_TAG_FLAG_META, G_TYPE_STRING,
+ _("Groups related media"),
+ _("Groups related media that spans multiple tracks, like the different "
+ "pieces of a concerto. It is a higher level than a track, "
+ "but lower than an album"), NULL);
}
/**
diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h
index 28a2c1119a..2ec2778000 100644
--- a/gst/gsttaglist.h
+++ b/gst/gsttaglist.h
@@ -790,7 +790,63 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list,
* Since: 0.10.21
*/
#define GST_TAG_GEO_LOCATION_ELEVATION "geo-location-elevation"
-
+/**
+ * GST_TAG_TV_SHOW
+ *
+ * Name of the show of the media, used for displaying
+ *
+ * Since: 0.10.26
+ */
+#define GST_TAG_SHOW_NAME "show-name"
+/**
+ * GST_TAG_TV_SHOW_SORTNAME
+ *
+ * Name of the show of the media, used for sorting
+ *
+ * Since: 0.10.26
+ */
+#define GST_TAG_SHOW_SORTNAME "show-sortname"
+/**
+ * GST_TAG_EPISODE_NUMBER
+ *
+ * Number of the episode within a season/show
+ *
+ * Since: 0.10.26
+ */
+#define GST_TAG_SHOW_EPISODE_NUMBER "show-episode-number"
+/**
+ * GST_TAG_SEASON_NUMBER
+ *
+ * Number of the season of a show/series
+ *
+ * Since: 0.10.26
+ */
+#define GST_TAG_SHOW_SEASON_NUMBER "show-season-number"
+/**
+ * GST_TAG_LYRICS
+ *
+ * The lyrics of the media
+ *
+ * Since: 0.10.26
+ */
+#define GST_TAG_LYRICS "lyrics"
+/**
+ * GST_TAG_COMPOSER_SORTNAME
+ *
+ * The composer's name, used for sorting
+ *
+ * Since: 0.10.26
+ */
+#define GST_TAG_COMPOSER_SORTNAME "composer-sortname"
+/**
+ * GST_TAG_GROUPING
+ *
+ * Groups together media that are related and spans multiple tracks. An
+ * example are multiple pieces of a concerto.
+ *
+ * Since: 0.10.26
+ */
+#define GST_TAG_GROUPING "grouping"
G_END_DECLS
#endif /* __GST_TAGLIST_H__ */