diff --git a/subprojects/gst-plugins-bad/sys/va/gstvaencoder.c b/subprojects/gst-plugins-bad/sys/va/gstvaencoder.c index 8062c6faee..fa0875417c 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvaencoder.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvaencoder.c @@ -586,9 +586,6 @@ gst_va_encoder_get_max_slice_num (GstVaEncoder * self, if (profile == VAProfileNone) return -1; - if (entrypoint != self->entrypoint) - return -1; - dpy = gst_va_display_get_va_dpy (self->display); status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1); if (status != VA_STATUS_SUCCESS) { @@ -620,9 +617,6 @@ gst_va_encoder_get_max_num_reference (GstVaEncoder * self, if (profile == VAProfileNone) return FALSE; - if (entrypoint != self->entrypoint) - return FALSE; - dpy = gst_va_display_get_va_dpy (self->display); status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1); if (status != VA_STATUS_SUCCESS) { @@ -661,9 +655,6 @@ gst_va_encoder_get_rate_control_mode (GstVaEncoder * self, if (profile == VAProfileNone) return 0; - if (entrypoint != self->entrypoint) - return 0; - dpy = gst_va_display_get_va_dpy (self->display); status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1); if (status != VA_STATUS_SUCCESS) { @@ -693,9 +684,6 @@ gst_va_encoder_get_quality_level (GstVaEncoder * self, if (profile == VAProfileNone) return 0; - if (entrypoint != self->entrypoint) - return 0; - dpy = gst_va_display_get_va_dpy (self->display); status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1); if (status != VA_STATUS_SUCCESS) { @@ -725,9 +713,6 @@ gst_va_encoder_has_trellis (GstVaEncoder * self, if (profile == VAProfileNone) return FALSE; - if (entrypoint != self->entrypoint) - return FALSE; - dpy = gst_va_display_get_va_dpy (self->display); status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1); if (status != VA_STATUS_SUCCESS) { @@ -755,9 +740,6 @@ gst_va_encoder_get_rtformat (GstVaEncoder * self, if (profile == VAProfileNone) return 0; - if (entrypoint != self->entrypoint) - return 0; - dpy = gst_va_display_get_va_dpy (self->display); status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1); if (status != VA_STATUS_SUCCESS) { @@ -785,9 +767,6 @@ gst_va_encoder_get_packed_headers (GstVaEncoder * self, VAProfile profile, if (profile == VAProfileNone) return 0; - if (entrypoint != self->entrypoint) - return 0; - dpy = gst_va_display_get_va_dpy (self->display); status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1); if (status != VA_STATUS_SUCCESS) {