From: Seungha Yang Date: Fri, 8 Jul 2022 10:05:19 +0000 (+0900) Subject: qsvencoder: Do not query again if previous call succeeded X-Git-Tag: 1.22.0~1297 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f90e9b561b1c10605303d207736db6a9b6b6f22;p=platform%2Fupstream%2Fgstreamer.git qsvencoder: Do not query again if previous call succeeded Don't need to query multiple times Part-of: --- 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);