diff --git a/subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp b/subprojects/gst-plugins-bad/sys/qsv/gstqsvencoder.cpp index 12ad492748..f62f3c6451 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);