mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 17:05:52 +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/5282>
This commit is contained in:
parent
889a3fe932
commit
2f3fea33ca
1 changed files with 1 additions and 6 deletions
|
@ -2374,20 +2374,15 @@ gst_amc_codec_info_to_caps (const GstAmcCodecInfo * codec_info,
|
||||||
g_value_reset (&v);
|
g_value_reset (&v);
|
||||||
|
|
||||||
encoded_ret = gst_caps_merge_structure (encoded_ret, tmp3);
|
encoded_ret = gst_caps_merge_structure (encoded_ret, tmp3);
|
||||||
|
|
||||||
have_profile_level = TRUE;
|
have_profile_level = TRUE;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (have_profile_level) {
|
|
||||||
gst_structure_free (tmp2);
|
gst_structure_free (tmp2);
|
||||||
} else {
|
} else {
|
||||||
encoded_ret = gst_caps_merge_structure (encoded_ret, tmp2);
|
encoded_ret = gst_caps_merge_structure (encoded_ret, tmp2);
|
||||||
}
|
|
||||||
|
|
||||||
have_profile_level = TRUE;
|
have_profile_level = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!have_profile_level) {
|
if (!have_profile_level) {
|
||||||
encoded_ret = gst_caps_merge_structure (encoded_ret, tmp);
|
encoded_ret = gst_caps_merge_structure (encoded_ret, tmp);
|
||||||
|
|
Loading…
Reference in a new issue