From 2f3fea33caf42d8854249f22dc03bfbb1773656f 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 c8cd7865fd..2da4657bd5 100644 --- a/subprojects/gst-plugins-bad/sys/androidmedia/gstamc.c +++ b/subprojects/gst-plugins-bad/sys/androidmedia/gstamc.c @@ -2374,18 +2374,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; } }