summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2016-04-18 18:19:09 +0300
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>2016-04-18 18:19:09 +0300
commit3a74500278049ae53a12af32892e288698e96961 (patch)
treeefa6e00cc21274846e6554563424a467c8c9ab54
parenta7da0b50737b0f5048923703853fc155abed7cff (diff)
gstvaapiencoder:Use internal api to dervie configured VAEntrypointvdenc
-rw-r--r--gst-libs/gst/vaapi/gstvaapiencoder.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiencoder.c b/gst-libs/gst/vaapi/gstvaapiencoder.c
index febc3b71..f900eff3 100644
--- a/gst-libs/gst/vaapi/gstvaapiencoder.c
+++ b/gst-libs/gst/vaapi/gstvaapiencoder.c
@@ -513,18 +513,14 @@ get_config_attribute (GstVaapiEncoder * encoder, VAConfigAttribType type,
GstVaapiProfile profile;
VAProfile va_profile;
VAEntrypoint va_entrypoint;
- const GstVaapiEncoderClassData *const cdata =
- GST_VAAPI_ENCODER_GET_CLASS (encoder)->class_data;
profile = get_profile (encoder);
if (!profile)
return FALSE;
va_profile = gst_vaapi_profile_get_va_profile (profile);
- if (cdata->codec != GST_VAAPI_CODEC_JPEG)
- va_entrypoint = VAEntrypointEncSlice;
- else
- va_entrypoint = VAEntrypointEncPicture;
+ va_entrypoint =
+ gst_vaapi_entrypoint_get_va_entrypoint (encoder->context_info.entrypoint);
return gst_vaapi_get_config_attribute (encoder->display, va_profile,
va_entrypoint, type, out_value_ptr);