mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
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:
parent
92820a8cf2
commit
ae56da8447
1 changed files with 1 additions and 6 deletions
|
@ -2372,20 +2372,15 @@ 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!have_profile_level) {
|
||||
encoded_ret = gst_caps_merge_structure (encoded_ret, tmp);
|
||||
|
|
Loading…
Reference in a new issue