gst/qtdemux/: Add keyword tag support. Fixes #520694 for qtdemux.

Original commit message from CVS:
* gst/qtdemux/qtdemux.c:
* gst/qtdemux/qtdemux_fourcc.h:
Add keyword tag support. Fixes #520694 for qtdemux.
This commit is contained in:
Stefan Kost 2008-08-04 07:17:38 +00:00
parent aa7a44190e
commit 115636d6d6
3 changed files with 19 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2008-08-04 Stefan Kost <ensonic@users.sf.net>
* gst/qtdemux/qtdemux.c:
* gst/qtdemux/qtdemux_fourcc.h:
Add keyword tag support. Fixes #520694 for qtdemux.
2008-08-04 Stefan Kost <ensonic@users.sf.net>
* gst/qtdemux/qtdemux.c:

View file

@ -4033,6 +4033,17 @@ qtdemux_parse_udta (GstQTDemux * qtdemux, GNode * udta)
if (node) {
qtdemux_tag_add_tmpo (qtdemux, GST_TAG_BEATS_PER_MINUTE, node);
}
node = qtdemux_tree_get_child_by_type (ilst, FOURCC_keyw);
if (node) {
qtdemux_tag_add_str (qtdemux, GST_TAG_KEYWORDS, node);
} else {
node = qtdemux_tree_get_child_by_type (ilst, FOURCC_kywd);
if (node) {
qtdemux_tag_add_str (qtdemux, GST_TAG_KEYWORDS, node);
}
}
}
typedef struct

View file

@ -130,6 +130,8 @@ G_BEGIN_DECLS
#define FOURCC_url_ GST_MAKE_FOURCC('u','r','l',' ')
#define FOURCC_frma GST_MAKE_FOURCC('f','r','m','a')
#define FOURCC_ctts GST_MAKE_FOURCC('c','t','t','s')
#define FOURCC_keyw GST_MAKE_FOURCC('k','e','y','w')
#define FOURCC_kywd GST_MAKE_FOURCC('k','y','w','d')
/* Xiph fourcc */
#define FOURCC_XiTh GST_MAKE_FOURCC('X','i','T','h')