From 0b285bfa40831725cdc59774f2c713db586aa607 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 7 May 2009 16:08:43 +0100 Subject: [PATCH] tags: add a tag for the container format API: add GST_TAG_CONTAINER_FORMAT --- 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 7a265c2..1f9516e 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -2052,6 +2052,7 @@ GST_TAG_CODEC GST_TAG_VIDEO_CODEC GST_TAG_AUDIO_CODEC GST_TAG_SUBTITLE_CODEC +GST_TAG_CONTAINER_FORMAT GST_TAG_BITRATE GST_TAG_NOMINAL_BITRATE GST_TAG_MINIMUM_BITRATE diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index c8ae601..f37b1c1 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -211,6 +211,9 @@ _gst_tag_initialize (void) 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_CONTAINER_FORMAT, GST_TAG_FLAG_ENCODED, + G_TYPE_STRING, _("container format"), + _("container format the 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 bfb5a10..abf1eab 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -582,6 +582,14 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list, */ #define GST_TAG_SUBTITLE_CODEC "subtitle-codec" /** + * GST_TAG_CONTAINER_FORMAT: + * + * container format the data is stored in (string) + * + * Since: 0.10.24 + */ +#define GST_TAG_CONTAINER_FORMAT "container-format" +/** * GST_TAG_BITRATE: * * exact or average bitrate in bits/s (unsigned integer) -- 2.7.4