va: h264dec: remove spurious if validation

The first if checks for caps, thus else doesn't need to recheck for the
opposite.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1999>
This commit is contained in:
Víctor Manuel Jáquez Leal 2021-01-22 16:54:05 +01:00
parent 688ade3cfc
commit 5e78c4bafc

View file

@ -773,7 +773,7 @@ gst_va_h264_dec_getcaps (GstVideoDecoder * decoder, GstCaps * filter)
caps = sinkcaps; caps = sinkcaps;
} }
GST_LOG_OBJECT (base, "Returning caps %" GST_PTR_FORMAT, caps); GST_LOG_OBJECT (base, "Returning caps %" GST_PTR_FORMAT, caps);
} else if (!caps) { } else {
caps = gst_video_decoder_proxy_getcaps (decoder, NULL, filter); caps = gst_video_decoder_proxy_getcaps (decoder, NULL, filter);
} }