From 26f9f721ffabb90a1fe586d940423e393f59640a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 25 Mar 2009 00:50:07 +0000 Subject: [PATCH] API: add GST_TAG_SUBTITLE_CODEC Yes, 'codec' isn't exactly the best word, but let's be consistent with AUDIO_CODEC and VIDEO_CODEC (which may be 'raw' formats as well after all). Prerequisite for bug #576552. --- docs/gst/gstreamer-sections.txt | 1 + gst/gsttaglist.c | 3 +++ gst/gsttaglist.h | 8 ++++++++ 3 files changed, 12 insertions(+) diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index e8c1d92..63e9799 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -2029,6 +2029,7 @@ GST_TAG_DURATION GST_TAG_CODEC GST_TAG_VIDEO_CODEC GST_TAG_AUDIO_CODEC +GST_TAG_SUBTITLE_CODEC GST_TAG_BITRATE GST_TAG_NOMINAL_BITRATE GST_TAG_MINIMUM_BITRATE diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index fba364b..537d538 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -208,6 +208,9 @@ _gst_tag_initialize (void) gst_tag_register (GST_TAG_AUDIO_CODEC, GST_TAG_FLAG_ENCODED, G_TYPE_STRING, _("audio codec"), _("codec the audio data is stored in"), NULL); + gst_tag_register (GST_TAG_SUBTITLE_CODEC, GST_TAG_FLAG_ENCODED, + G_TYPE_STRING, + _("subtitle codec"), _("codec the subtitle data is stored in"), NULL); gst_tag_register (GST_TAG_BITRATE, GST_TAG_FLAG_ENCODED, G_TYPE_UINT, _("bitrate"), _("exact or average bitrate in bits/s"), NULL); gst_tag_register (GST_TAG_NOMINAL_BITRATE, GST_TAG_FLAG_ENCODED, diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h index b93451f..973a0c6 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -566,6 +566,14 @@ gboolean gst_tag_list_get_date_index (const GstTagList * list, */ #define GST_TAG_AUDIO_CODEC "audio-codec" /** + * GST_TAG_SUBTITLE_CODEC: + * + * codec/format the subtitle data is stored in (string) + * + * Since: 0.10.23 + */ +#define GST_TAG_SUBTITLE_CODEC "subtitle-codec" +/** * GST_TAG_BITRATE: * * exact or average bitrate in bits/s (unsigned integer) -- 2.7.4