From: Nicolas Dufresne Date: Wed, 2 Mar 2022 21:20:31 +0000 (-0500) Subject: av1parse: Remove duplicated check X-Git-Tag: 1.22.0~2255 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f627d6aafc4bf64df76ebc3d2d15949e4c99634b;p=platform%2Fupstream%2Fgstreamer.git av1parse: Remove duplicated check The case of both strings being empty is already checked in the helper function. No functional changes. Part-of: --- 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;