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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5313>
This commit is contained in:
Thomas Schneider 2023-09-05 14:15:04 +02:00 committed by GStreamer Marge Bot
parent 92820a8cf2
commit ae56da8447

View file

@ -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;
}
}