From 8bb1333c14d8c931fe4e74c172dffcaf25d0b2cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 5 Mar 2006 13:44:05 +0000 Subject: [PATCH] gst/typefind/gsttypefindfunctions.c: Give id3 and ape tag typefinders a rank slightly higher than PRIMARY to ensure t... Original commit message from CVS: * gst/typefind/gsttypefindfunctions.c: (plugin_init): Give id3 and ape tag typefinders a rank slightly higher than PRIMARY to ensure they're always run before any of the other typefinders (in particular wav and mp3) (#324186). --- ChangeLog | 7 +++++++ gst/typefind/gsttypefindfunctions.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 04338d94cf..cb6fcb548e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-03-05 Tim-Philipp Müller + + * gst/typefind/gsttypefindfunctions.c: (plugin_init): + Give id3 and ape tag typefinders a rank slightly higher + than PRIMARY to ensure they're always run before any of + the other typefinders (in particular wav and mp3) (#324186). + 2006-03-05 Tim-Philipp Müller * gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps): diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c index cb2f40ef45..619846d143 100644 --- a/gst/typefind/gsttypefindfunctions.c +++ b/gst/typefind/gsttypefindfunctions.c @@ -2181,9 +2181,9 @@ plugin_init (GstPlugin * plugin) flac_exts, "fLaC", 4, GST_TYPE_FIND_MAXIMUM); TYPE_FIND_REGISTER (plugin, "video/x-fli", GST_RANK_MARGINAL, flx_type_find, flx_exts, FLX_CAPS, NULL, NULL); - TYPE_FIND_REGISTER (plugin, "application/x-id3", GST_RANK_PRIMARY, + TYPE_FIND_REGISTER (plugin, "application/x-id3", GST_RANK_PRIMARY + 2, id3_type_find, id3_exts, ID3_CAPS, NULL, NULL); - TYPE_FIND_REGISTER (plugin, "application/x-apetag", GST_RANK_PRIMARY, + TYPE_FIND_REGISTER (plugin, "application/x-apetag", GST_RANK_PRIMARY + 1, apetag_type_find, apetag_exts, APETAG_CAPS, NULL, NULL); TYPE_FIND_REGISTER (plugin, "audio/x-ttafile", GST_RANK_PRIMARY, tta_type_find, tta_exts, TTA_CAPS, NULL, NULL);