From 5e78c4bafcf03c0862ce2c46a0198d7bf10b7650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 22 Jan 2021 16:54:05 +0100 Subject: [PATCH] va: h264dec: remove spurious if validation The first if checks for caps, thus else doesn't need to recheck for the opposite. Part-of: --- sys/va/gstvah264dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/va/gstvah264dec.c b/sys/va/gstvah264dec.c index 77ad697893..cbe8f7a10f 100644 --- a/sys/va/gstvah264dec.c +++ b/sys/va/gstvah264dec.c @@ -773,7 +773,7 @@ gst_va_h264_dec_getcaps (GstVideoDecoder * decoder, GstCaps * filter) caps = sinkcaps; } GST_LOG_OBJECT (base, "Returning caps %" GST_PTR_FORMAT, caps); - } else if (!caps) { + } else { caps = gst_video_decoder_proxy_getcaps (decoder, NULL, filter); }