mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
typefind: Simplify code
This is only called when in TYPEFIND mode.
This commit is contained in:
parent
7982f682dd
commit
11f6e08aae
1 changed files with 3 additions and 5 deletions
|
@ -716,12 +716,10 @@ gst_type_find_element_setcaps (GstTypeFindElement * typefind, GstCaps * caps)
|
||||||
GST_TYPE_FIND_MAXIMUM, caps);
|
GST_TYPE_FIND_MAXIMUM, caps);
|
||||||
|
|
||||||
/* Shortcircuit typefinding if we get caps */
|
/* Shortcircuit typefinding if we get caps */
|
||||||
if (typefind->mode == MODE_TYPEFIND) {
|
GST_DEBUG_OBJECT (typefind, "Skipping typefinding, using caps from "
|
||||||
GST_DEBUG_OBJECT (typefind, "Skipping typefinding, using caps from "
|
"upstream: %" GST_PTR_FORMAT, caps);
|
||||||
"upstream: %" GST_PTR_FORMAT, caps);
|
|
||||||
|
|
||||||
stop_typefinding (typefind);
|
stop_typefinding (typefind);
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue