mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 12:41:05 +00:00
FEI: libs: make sure the default context creation works as expected.
Current code always guess the entrypoint during init phase in case if there is no entrypoint already configured in GstVaapiContextInfo. Make sure FEI Entrypoint is not messing up with this logic. https://bugzilla.gnome.org/show_bug.cgi?id=785712 https://bugzilla.gnome.org/show_bug.cgi?id=784667
This commit is contained in:
parent
7d77cdd9f7
commit
ac1de3d39a
1 changed files with 2 additions and 1 deletions
|
@ -730,7 +730,8 @@ init_context_info (GstVaapiEncoder * encoder, GstVaapiContextInfo * cip,
|
|||
if (cdata->codec == GST_VAAPI_CODEC_JPEG) {
|
||||
cip->entrypoint = GST_VAAPI_ENTRYPOINT_PICTURE_ENCODE;
|
||||
} else {
|
||||
if (cip->entrypoint != GST_VAAPI_ENTRYPOINT_SLICE_ENCODE_LP)
|
||||
if (cip->entrypoint != GST_VAAPI_ENTRYPOINT_SLICE_ENCODE_LP &&
|
||||
cip->entrypoint != GST_VAAPI_ENTRYPOINT_SLICE_ENCODE_FEI)
|
||||
cip->entrypoint = GST_VAAPI_ENTRYPOINT_SLICE_ENCODE;
|
||||
}
|
||||
cip->chroma_type = get_default_chroma_type (encoder, cip);
|
||||
|
|
Loading…
Reference in a new issue