From 4f90e9b561b1c10605303d207736db6a9b6b6f22 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Fri, 8 Jul 2022 19:05:19 +0900 Subject: [PATCH] qsvencoder: Do not query again if previous call succeeded Don't need to query multiple times Part-of: --- subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp b/subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp index 12ad492..f62f3c6 100644 --- a/subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp +++ b/subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp @@ -1060,9 +1060,8 @@ gst_qsv_encoder_init_encode_session (GstQsvEncoder * self) GST_INFO_OBJECT (self, "LowPower - OFF returned %d (%s)", QSV_STATUS_ARGS (status)); 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); status = encoder_handle->QueryIOSurf (¶m, &alloc_request); -- 2.7.4