mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-25 21:40:34 +00:00
parent
5393083165
commit
574f3b3d18
1 changed files with 11 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue