Skip to content
Prev Previous commit
change activeFormat always if framesPerSecond is set
  • Loading branch information
misos1 committed Oct 12, 2024
commit 0125d77b025b84fe5e52a2f158373b76b016841a
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,7 @@ static void selectBestFormatForRequestedFrameRate(
isBestSubTypePreferred = isSubTypePreferred;
}
}
if (![bestFormat isEqual:captureDevice.activeFormat]) {
captureDevice.activeFormat = bestFormat;
}
captureDevice.activeFormat = bestFormat;
mediaSettings.framesPerSecond = @(bestFrameRate);
}

Expand Down