mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +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);
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue