From ae56da84472f9844e13c699c7e7e02bfdbc82a4a Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Tue, 5 Sep 2023 14:15:04 +0200 Subject: [PATCH] androidmedia: fix hevc codec profile registration Fix the codec registration logic such that all supported profiles are available instead of just the first in the list. Part-of: --- subprojects/gst-plugins-bad/sys/androidmedia/gstamc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/androidmedia/gstamc.c b/subprojects/gst-plugins-bad/sys/androidmedia/gstamc.c index f72fd836fd..264e45330f 100644 --- a/subprojects/gst-plugins-bad/sys/androidmedia/gstamc.c +++ b/subprojects/gst-plugins-bad/sys/androidmedia/gstamc.c @@ -2372,18 +2372,13 @@ gst_amc_codec_info_to_caps (const GstAmcCodecInfo * codec_info, g_value_reset (&v); encoded_ret = gst_caps_merge_structure (encoded_ret, tmp3); - have_profile_level = TRUE; } - } - - if (have_profile_level) { gst_structure_free (tmp2); } else { encoded_ret = gst_caps_merge_structure (encoded_ret, tmp2); + have_profile_level = TRUE; } - - have_profile_level = TRUE; } }