From 11f6e08aae26e35ccc367bd43ba7ca9a398601ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 29 Apr 2013 13:03:24 +0200 Subject: [PATCH] typefind: Simplify code This is only called when in TYPEFIND mode. --- plugins/elements/gsttypefindelement.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c index c8c68c2f8f..5ea26f8551 100644 --- a/plugins/elements/gsttypefindelement.c +++ b/plugins/elements/gsttypefindelement.c @@ -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; }