mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
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.
This commit is contained in:
parent
927d016461
commit
26f9f721ff
3 changed files with 12 additions and 0 deletions
|
@ -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:
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue