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
This commit is contained in:
Thiago Santos 2009-12-21 11:58:12 -03:00
parent db1acc3520
commit a3078cf0cd
3 changed files with 91 additions and 1 deletions

View file

@ -2176,6 +2176,13 @@ GST_TAG_GEO_LOCATION_NAME
GST_TAG_GEO_LOCATION_LATITUDE GST_TAG_GEO_LOCATION_LATITUDE
GST_TAG_GEO_LOCATION_LONGITUDE GST_TAG_GEO_LOCATION_LONGITUDE
GST_TAG_GEO_LOCATION_ELEVATION 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_register
gst_tag_merge_use_first gst_tag_merge_use_first

View file

@ -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)"), ("geo elevation of where the media has been recorded or produced in meters according to WGS84 (zero is average sea level)"),
NULL); 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);
} }
/** /**

View file

@ -790,7 +790,63 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list,
* Since: 0.10.21 * Since: 0.10.21
*/ */
#define GST_TAG_GEO_LOCATION_ELEVATION "geo-location-elevation" #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 G_END_DECLS
#endif /* __GST_TAGLIST_H__ */ #endif /* __GST_TAGLIST_H__ */