diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2021-01-22 16:54:05 +0100 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2021-02-05 21:24:02 +0100 |
commit | 5e78c4bafcf03c0862ce2c46a0198d7bf10b7650 (patch) | |
tree | 2a8a622247e3b1c79452203ceb1ad2e3c4696563 /sys | |
parent | 688ade3cfc272c0f6ef9eeb5d98f41da8d804fc1 (diff) | |
download | gstreamer-plugins-bad-5e78c4bafcf03c0862ce2c46a0198d7bf10b7650.tar.gz |
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>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/va/gstvah264dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/va/gstvah264dec.c b/sys/va/gstvah264dec.c index 77ad69789..cbe8f7a10 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); } |