Commit 26f9f721 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

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.
parent 927d0164
......@@ -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
......
......@@ -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,
......
......@@ -565,6 +565,14 @@ gboolean gst_tag_list_get_date_index (const GstTagList * list,
* codec the audio data is stored in (string)
*/
#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:
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment