Modify private-tag name formatter so that it doesn't go mad at fourcc starting with...
authorEdward Hervey <bilboed@bilboed.com>
Fri, 30 Jan 2009 14:33:19 +0000 (15:33 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 30 Jan 2009 14:33:19 +0000 (15:33 +0100)
gst/qtdemux/qtdemux.c

index 540168d9f83661fcb14f2ea9dd99b15eb87c084e..23bf714e8ff001c693d332822c39a3a37798635f 100644 (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);