mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
va: encoder: Fix regression since commit 2042c2d4f0
.
There's no need to compare with the open entrypoint to query the encoder. This commit removes the checks to the configured entrypoint with the parameter. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2508>
This commit is contained in:
parent
a8f18aef18
commit
e83983d7ca
1 changed files with 0 additions and 21 deletions
|
@ -586,9 +586,6 @@ gst_va_encoder_get_max_slice_num (GstVaEncoder * self,
|
||||||
if (profile == VAProfileNone)
|
if (profile == VAProfileNone)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (entrypoint != self->entrypoint)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
dpy = gst_va_display_get_va_dpy (self->display);
|
dpy = gst_va_display_get_va_dpy (self->display);
|
||||||
status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1);
|
status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1);
|
||||||
if (status != VA_STATUS_SUCCESS) {
|
if (status != VA_STATUS_SUCCESS) {
|
||||||
|
@ -620,9 +617,6 @@ gst_va_encoder_get_max_num_reference (GstVaEncoder * self,
|
||||||
if (profile == VAProfileNone)
|
if (profile == VAProfileNone)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (entrypoint != self->entrypoint)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
dpy = gst_va_display_get_va_dpy (self->display);
|
dpy = gst_va_display_get_va_dpy (self->display);
|
||||||
status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1);
|
status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1);
|
||||||
if (status != VA_STATUS_SUCCESS) {
|
if (status != VA_STATUS_SUCCESS) {
|
||||||
|
@ -661,9 +655,6 @@ gst_va_encoder_get_rate_control_mode (GstVaEncoder * self,
|
||||||
if (profile == VAProfileNone)
|
if (profile == VAProfileNone)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (entrypoint != self->entrypoint)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
dpy = gst_va_display_get_va_dpy (self->display);
|
dpy = gst_va_display_get_va_dpy (self->display);
|
||||||
status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1);
|
status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1);
|
||||||
if (status != VA_STATUS_SUCCESS) {
|
if (status != VA_STATUS_SUCCESS) {
|
||||||
|
@ -693,9 +684,6 @@ gst_va_encoder_get_quality_level (GstVaEncoder * self,
|
||||||
if (profile == VAProfileNone)
|
if (profile == VAProfileNone)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (entrypoint != self->entrypoint)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
dpy = gst_va_display_get_va_dpy (self->display);
|
dpy = gst_va_display_get_va_dpy (self->display);
|
||||||
status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1);
|
status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1);
|
||||||
if (status != VA_STATUS_SUCCESS) {
|
if (status != VA_STATUS_SUCCESS) {
|
||||||
|
@ -725,9 +713,6 @@ gst_va_encoder_has_trellis (GstVaEncoder * self,
|
||||||
if (profile == VAProfileNone)
|
if (profile == VAProfileNone)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (entrypoint != self->entrypoint)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
dpy = gst_va_display_get_va_dpy (self->display);
|
dpy = gst_va_display_get_va_dpy (self->display);
|
||||||
status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1);
|
status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1);
|
||||||
if (status != VA_STATUS_SUCCESS) {
|
if (status != VA_STATUS_SUCCESS) {
|
||||||
|
@ -755,9 +740,6 @@ gst_va_encoder_get_rtformat (GstVaEncoder * self,
|
||||||
if (profile == VAProfileNone)
|
if (profile == VAProfileNone)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (entrypoint != self->entrypoint)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
dpy = gst_va_display_get_va_dpy (self->display);
|
dpy = gst_va_display_get_va_dpy (self->display);
|
||||||
status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1);
|
status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1);
|
||||||
if (status != VA_STATUS_SUCCESS) {
|
if (status != VA_STATUS_SUCCESS) {
|
||||||
|
@ -785,9 +767,6 @@ gst_va_encoder_get_packed_headers (GstVaEncoder * self, VAProfile profile,
|
||||||
if (profile == VAProfileNone)
|
if (profile == VAProfileNone)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (entrypoint != self->entrypoint)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
dpy = gst_va_display_get_va_dpy (self->display);
|
dpy = gst_va_display_get_va_dpy (self->display);
|
||||||
status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1);
|
status = vaGetConfigAttributes (dpy, profile, entrypoint, &attrib, 1);
|
||||||
if (status != VA_STATUS_SUCCESS) {
|
if (status != VA_STATUS_SUCCESS) {
|
||||||
|
|
Loading…
Reference in a new issue