diff options
author | Hyunjun Ko <zzoon@igalia.com> | 2017-02-23 15:16:06 +0900 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2017-02-28 18:26:44 +0100 |
commit | 6468bf2ddf0463f5ec24a945ac4fad182fecac6f (patch) | |
tree | cc164b65cac66278f32437d12165837c68bdfde7 /gst-libs/gst | |
parent | 04a844ced08930e6f758b946f9396f573144992b (diff) |
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
Diffstat (limited to 'gst-libs/gst')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiencoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder.c b/gst-libs/gst/vaapi/gstvaapiencoder.c index 6f8ef283..2989ff80 100644 --- a/gst-libs/gst/vaapi/gstvaapiencoder.c +++ b/gst-libs/gst/vaapi/gstvaapiencoder.c @@ -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 { |