mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
qsvencoder: Do not query again if previous call succeeded
Don't need to query multiple times Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2730>
This commit is contained in:
parent
6cc6494287
commit
4f90e9b561
1 changed files with 1 additions and 2 deletions
|
@ -1060,9 +1060,8 @@ gst_qsv_encoder_init_encode_session (GstQsvEncoder * self)
|
||||||
GST_INFO_OBJECT (self, "LowPower - OFF returned %d (%s)",
|
GST_INFO_OBJECT (self, "LowPower - OFF returned %d (%s)",
|
||||||
QSV_STATUS_ARGS (status));
|
QSV_STATUS_ARGS (status));
|
||||||
param.mfx.LowPower = MFX_CODINGOPTION_UNKNOWN;
|
param.mfx.LowPower = MFX_CODINGOPTION_UNKNOWN;
|
||||||
|
status = encoder_handle->Query (¶m, ¶m);
|
||||||
}
|
}
|
||||||
|
|
||||||
status = encoder_handle->Query (¶m, ¶m);
|
|
||||||
QSV_CHECK_STATUS (self, status, MFXVideoENCODE::Query);
|
QSV_CHECK_STATUS (self, status, MFXVideoENCODE::Query);
|
||||||
|
|
||||||
status = encoder_handle->QueryIOSurf (¶m, &alloc_request);
|
status = encoder_handle->QueryIOSurf (¶m, &alloc_request);
|
||||||
|
|
Loading…
Reference in a new issue