From 4bb2893c0f6461b60f17d32d3b832715d82e2584 Mon Sep 17 00:00:00 2001 From: Younghwan Date: Fri, 2 Sep 2016 09:25:54 +0900 Subject: [PATCH] "audio-dualmono" tag to get it from stream-info and audio codec Change-Id: Iad4876718fb5ead2c1096af7fc714e36f9705e32 --- gst/gsttaglist.c | 4 ++++ gst/gsttaglist.h | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index 5b644dc..75ca5ee 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -277,6 +277,10 @@ _priv_gst_tag_initialize (void) _("freeform name of the language this stream is in"), NULL); gst_tag_register_static (GST_TAG_IMAGE, GST_TAG_FLAG_META, GST_TYPE_SAMPLE, _("image"), _("image related to this stream"), gst_tag_merge_use_first); +#ifdef GST_TIZEN_TV + gst_tag_register_static (GST_TAG_AUDIO_DUALMONO, GST_TAG_FLAG_DECODED, G_TYPE_UINT, + _("dualmono audio"), _("dual/mono related to this audio stream"), NULL); +#endif gst_tag_register_static (GST_TAG_PREVIEW_IMAGE, GST_TAG_FLAG_META, GST_TYPE_SAMPLE, /* TRANSLATORS: 'preview image' = image that shows a preview of the full image */ diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h index 42f944b..e167fe5 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -722,6 +722,14 @@ gst_tag_list_copy (const GstTagList * taglist) * container format the data is stored in (string) */ #define GST_TAG_CONTAINER_FORMAT "container-format" +#ifdef GST_TIZEN_TV +/** + * GST_TAG_AUDIO_DUALMONO: + * + * dual/mono can available in audio stream (boolean) + */ +#define GST_TAG_AUDIO_DUALMONO "audio-dualmono" +#endif /** * GST_TAG_BITRATE: * -- 2.7.4