qtdemux: add tag mappings for _swr, _mak and _mod tags
authorThiago Santos <ts.santos@sisa.samsung.com>
Fri, 23 May 2014 06:00:50 +0000 (03:00 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Fri, 23 May 2014 06:15:42 +0000 (03:15 -0300)
swr -> Application name
mak -> device manufacturer
mod -> device model

gst/isomp4/fourcc.h
gst/isomp4/qtdemux.c

index 64322a7..4edf900 100644 (file)
@@ -304,6 +304,11 @@ G_BEGIN_DECLS
 /* ilst metatags */
 #define FOURCC__cmt     GST_MAKE_FOURCC(0xa9, 'c','m','t')
 
+/* apple tags */
+#define FOURCC__mak     GST_MAKE_FOURCC(0xa9, 'm','a','k')
+#define FOURCC__mod     GST_MAKE_FOURCC(0xa9, 'm','o','d')
+#define FOURCC__swr     GST_MAKE_FOURCC(0xa9, 's','w','r')
+
 /* Chapters reference */
 #define FOURCC_chap     GST_MAKE_FOURCC('c','h','a','p')
 
index 53847c0..f736345 100644 (file)
@@ -9728,6 +9728,9 @@ static const struct
   FOURCC_loci, GST_TAG_GEO_LOCATION_NAME, NULL, qtdemux_tag_add_location}, {
   FOURCC_clsf, GST_QT_DEMUX_CLASSIFICATION_TAG, NULL,
         qtdemux_tag_add_classification}, {
+  FOURCC__mak, GST_TAG_DEVICE_MANUFACTURER, NULL, qtdemux_tag_add_str}, {
+  FOURCC__mod, GST_TAG_DEVICE_MODEL, NULL, qtdemux_tag_add_str}, {
+  FOURCC__swr, GST_TAG_APPLICATION_NAME, NULL, qtdemux_tag_add_str}, {
 
     /* This is a special case, some tags are stored in this
      * 'reverse dns naming', according to: