From 574f3b3d18cca4e2706ac4615f793e3b2a88109c Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Tue, 26 Aug 2003 10:44:51 +0000 Subject: [PATCH] fixes #120741 Original commit message from CVS: fixes #120741 --- gst/registries/gstxmlregistry.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/gst/registries/gstxmlregistry.c b/gst/registries/gstxmlregistry.c index ccdb088530..3ee6d6d4bd 100644 --- a/gst/registries/gstxmlregistry.c +++ b/gst/registries/gstxmlregistry.c @@ -701,10 +701,17 @@ gst_type_type_find_dummy (GstBuffer *buffer, gpointer priv) GST_DEBUG (GST_CAT_TYPES,"gsttype: need to load typefind function for %s", factory->mime); if (gst_plugin_feature_ensure_loaded (GST_PLUGIN_FEATURE (factory))) { - if (factory->typefindfunc) { - GstCaps *res = factory->typefindfunc (buffer, factory); - if (res) - return res; + if (factory->typefindfunc) + { + if (factory->typefindfunc == gst_type_type_find_dummy) { + g_warning ("factory->typefindfunc set to _dummy, not recursing, FIXME"); + } + else + { + GstCaps *res = factory->typefindfunc (buffer, factory); + if (res) + return res; + } } } return NULL;