From acc6a316ce333eb3b28975e5fcfe678a704dc1f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 21 Feb 2009 17:38:49 +0100 Subject: mxfdemux: Post structural metadata tree as tag on the bus This will later be used to keep the structural metadata when remuxing an MXF file and can also be used in Pitivi for example to know the file structure and to select what should be used and played. --- gst/mxf/mxf.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gst/mxf/mxf.c') diff --git a/gst/mxf/mxf.c b/gst/mxf/mxf.c index 58fa0302..ec477721 100644 --- a/gst/mxf/mxf.c +++ b/gst/mxf/mxf.c @@ -22,6 +22,7 @@ #include +#include "mxfquark.h" #include "mxfdemux.h" #include "mxfaes-bwf.h" #include "mxfmpeg.h" @@ -41,12 +42,19 @@ mxf_init (void) { gst_tag_register (GST_TAG_MXF_UMID, GST_TAG_FLAG_META, G_TYPE_STRING, "UMID", "Unique Material Identifier", NULL); + gst_tag_register (GST_TAG_MXF_STRUCTURE, GST_TAG_FLAG_META, + GST_TYPE_STRUCTURE, "Structure", "Structural metadata of " + "the MXF file", NULL); + gst_tag_register (GST_TAG_MXF_DESCRIPTIVE_METADATA_FRAMEWORK, + GST_TAG_FLAG_META, GST_TYPE_STRUCTURE, "DM Framework", + "Descriptive metadata framework", NULL); } static gboolean plugin_init (GstPlugin * plugin) { mxf_init (); + mxf_quark_initialize (); mxf_metadata_init_types (); mxf_aes_bwf_init (); mxf_mpeg_init (); -- cgit v1.2.1