typefind: Simplify code

This is only called when in TYPEFIND mode.
This commit is contained in:
Sebastian Dröge 2013-04-29 13:03:24 +02:00
parent 7982f682dd
commit 11f6e08aae

View file

@ -716,12 +716,10 @@ gst_type_find_element_setcaps (GstTypeFindElement * typefind, GstCaps * caps)
GST_TYPE_FIND_MAXIMUM, caps);
/* Shortcircuit typefinding if we get caps */
if (typefind->mode == MODE_TYPEFIND) {
GST_DEBUG_OBJECT (typefind, "Skipping typefinding, using caps from "
"upstream: %" GST_PTR_FORMAT, caps);
GST_DEBUG_OBJECT (typefind, "Skipping typefinding, using caps from "
"upstream: %" GST_PTR_FORMAT, caps);
stop_typefinding (typefind);
}
stop_typefinding (typefind);
return TRUE;
}