summaryrefslogtreecommitdiffstats
path: root/gst/apetag
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-06-19 00:16:41 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-06-22 10:49:03 +0100
commit0a8f254460afc4b1a5bec091cca7aa9016a84d11 (patch)
treefaea1cc3eea4837589f93c58caff2f57150d49dd /gst/apetag
parent98fa27dcd129dd8034405ffb19fb6d5b03aadebb (diff)
apedemux: add container-format tag
Use pbutils here because the string is translated.
Diffstat (limited to 'gst/apetag')
-rw-r--r--gst/apetag/Makefile.am1
-rw-r--r--gst/apetag/gstapedemux.c7
2 files changed, 8 insertions, 0 deletions
diff --git a/gst/apetag/Makefile.am b/gst/apetag/Makefile.am
index 72383e5e..bde6a9f9 100644
--- a/gst/apetag/Makefile.am
+++ b/gst/apetag/Makefile.am
@@ -8,6 +8,7 @@ libgstapetag_la_CFLAGS = \
$(GST_CFLAGS)
libgstapetag_la_LIBADD = \
$(GST_PLUGINS_BASE_LIBS) -lgsttag-@GST_MAJORMINOR@ \
+ -lgstpbutils-@GST_MAJORMINOR@\
$(GST_BASE_LIBS) \
$(GST_LIBS)
libgstapetag_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
diff --git a/gst/apetag/gstapedemux.c b/gst/apetag/gstapedemux.c
index 8401cce4..68b883e8 100644
--- a/gst/apetag/gstapedemux.c
+++ b/gst/apetag/gstapedemux.c
@@ -48,6 +48,7 @@
#include <gst/gst.h>
#include <gst/gst-i18n-plugin.h>
+#include <gst/pbutils/pbutils.h>
#include "gstapedemux.h"
@@ -350,6 +351,7 @@ gst_ape_demux_parse_tag (GstTagDemux * demux, GstBuffer * buffer,
const guint8 *footer;
gboolean have_header;
gboolean end_tag = !start_tag;
+ GstCaps *sink_caps;
guint version, footer_size;
GST_LOG_OBJECT (demux, "Parsing buffer of size %u", GST_BUFFER_SIZE (buffer));
@@ -409,6 +411,11 @@ gst_ape_demux_parse_tag (GstTagDemux * demux, GstBuffer * buffer,
*tags = ape_demux_parse_tags (data, *tag_size - footer_size);
+ sink_caps = gst_static_pad_template_get_caps (&sink_factory);
+ gst_pb_utils_add_codec_description_to_tag_list (*tags,
+ GST_TAG_CONTAINER_FORMAT, sink_caps);
+ gst_caps_unref (sink_caps);
+
return GST_TAG_DEMUX_RESULT_OK;
}