mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
libs: encoder: ensure profile when context initialization
We can't be sure that encoder's profile is assgined already or not at context initialization. https://bugzilla.gnome.org/show_bug.cgi?id=779120
This commit is contained in:
parent
04a844ced0
commit
6468bf2ddf
1 changed files with 1 additions and 1 deletions
|
@ -596,7 +596,7 @@ init_context_info (GstVaapiEncoder * encoder)
|
|||
GST_VAAPI_ENCODER_GET_CLASS (encoder)->class_data;
|
||||
|
||||
cip->usage = GST_VAAPI_CONTEXT_USAGE_ENCODE;
|
||||
cip->profile = encoder->profile;
|
||||
cip->profile = get_profile (encoder);
|
||||
if (cdata->codec == GST_VAAPI_CODEC_JPEG) {
|
||||
cip->entrypoint = GST_VAAPI_ENTRYPOINT_PICTURE_ENCODE;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue