Modify private-tag name formatter so that it doesn't go mad at fourcc starting with '(c)'.

This commit is contained in:
Edward Hervey 2009-01-30 15:33:19 +01:00
parent 74f84ae47f
commit 1af5a5d001

View file

@ -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);