summaryrefslogtreecommitdiffstats
path: root/gst/qtdemux
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-01-30 15:33:19 +0100
committerEdward Hervey <bilboed@bilboed.com>2009-01-30 15:33:19 +0100
commit1af5a5d0017f95cc44f55c900c5985f9bb70259b (patch)
treef91d1a41af0d5a486e9d11d8c9baaabe82376f63 /gst/qtdemux
parent74f84ae47fb4a82682769aff7ce63f181b70d483 (diff)
Modify private-tag name formatter so that it doesn't go mad at fourcc starting with '(c)'.
Diffstat (limited to 'gst/qtdemux')
-rw-r--r--gst/qtdemux/qtdemux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index 540168d9..23bf714e 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -4201,8 +4201,9 @@ qtdemux_tag_add_blob (GNode * node, GstQTDemux * demux)
style = "iso";
media_type = g_strdup_printf ("application/x-gst-qt-%c%c%c%c-tag",
- g_ascii_tolower (data[4]), g_ascii_tolower (data[5]),
- g_ascii_tolower (data[6]), g_ascii_tolower (data[7]));
+ (data[4] == 0xa9) ? '_' : g_ascii_tolower (data[4]),
+ g_ascii_tolower (data[5]), g_ascii_tolower (data[6]),
+ g_ascii_tolower (data[7]));
caps = gst_caps_new_simple (media_type, "style", G_TYPE_STRING, style, NULL);
gst_buffer_set_caps (buf, caps);
gst_caps_unref (caps);