Commit 0a8f2544 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

apedemux: add container-format tag

Use pbutils here because the string is translated.
parent 98fa27dc
......@@ -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)
......
......@@ -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;
}
......
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