From f627d6aafc4bf64df76ebc3d2d15949e4c99634b Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 2 Mar 2022 16:20:31 -0500 Subject: [PATCH] av1parse: Remove duplicated check The case of both strings being empty is already checked in the helper function. No functional changes. Part-of: --- subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c b/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c index 980c4a0..2674692 100644 --- a/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c +++ b/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c @@ -608,8 +608,7 @@ gst_av1_parse_alignment_from_caps (GstCaps * caps) str_align = gst_structure_get_string (s, "alignment"); str_stream = gst_structure_get_string (s, "stream-format"); - if (str_align || str_stream) - align = gst_av1_parse_alignment_from_string (str_align, str_stream); + align = gst_av1_parse_alignment_from_string (str_align, str_stream); } return align; -- 2.7.4