typefind: recognize Apple Core Audio Format
authorPeter G. Baum <peter@dr-baum.net>
Sun, 9 Nov 2014 11:53:32 +0000 (12:53 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 9 Nov 2014 14:42:40 +0000 (14:42 +0000)
(CAF) Specification 1.0

https://bugzilla.gnome.org/show_bug.cgi?id=739840

gst/typefind/gsttypefindfunctions.c

index 74b4ee4..3840a5b 100644 (file)
@@ -5644,6 +5644,8 @@ plugin_init (GstPlugin * plugin)
       wavpack_type_find, "wv,wvp", WAVPACK_CAPS, NULL, NULL);
   TYPE_FIND_REGISTER (plugin, "audio/x-wavpack-correction", GST_RANK_SECONDARY,
       wavpack_type_find, "wvc", WAVPACK_CORRECTION_CAPS, NULL, NULL);
+  TYPE_FIND_REGISTER_START_WITH (plugin, "audio/x-caf", GST_RANK_SECONDARY,
+      "caf", "caff\000\001", 6, GST_TYPE_FIND_MAXIMUM);
   TYPE_FIND_REGISTER (plugin, "application/postscript", GST_RANK_SECONDARY,
       postscript_type_find, "ps", POSTSCRIPT_CAPS, NULL, NULL);
   TYPE_FIND_REGISTER (plugin, "image/svg+xml", GST_RANK_SECONDARY,