From a69ffb5886e3c3b2d73d736644afd81f91753e3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 4 Sep 2009 07:36:10 +0200 Subject: [PATCH] typefindfunctions: Add typefinder for Midi inside RIFF This is a standard Midi file format that should be supported by all Midi decoders and also has the mimetype audio/mid according to the Midi specification homepage. Fixes bug #594094. --- gst/typefind/gsttypefindfunctions.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index bf6e7be7a..1be95a345 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -3534,6 +3534,8 @@ plugin_init (GstPlugin * plugin) #endif TYPE_FIND_REGISTER (plugin, "audio/midi", GST_RANK_PRIMARY, mid_type_find, mid_exts, MID_CAPS, NULL, NULL); + TYPE_FIND_REGISTER_RIFF (plugin, "audio/midi", GST_RANK_PRIMARY, mid_exts, + "RMID"); TYPE_FIND_REGISTER (plugin, "audio/mobile-xmf", GST_RANK_PRIMARY, mxmf_type_find, mxmf_exts, MXMF_CAPS, NULL, NULL); TYPE_FIND_REGISTER (plugin, "video/x-fli", GST_RANK_MARGINAL, flx_type_find, -- 2.34.1