obs-studio
obs-studio copied to clipboard
UI: Use stream encoder when resetting encoders
Description
Use stream encoder when resetting encoder rather than the recording one.
While resetting, OBS will try to restore the actual stream encoder stored in the lastAdvEnc variable but it contains the record one which will restored the wrong encoder.
Motivation and Context
It actually use recording encoder which is wrong.
It could cause issue if the record and steam encoder differ and a reset happen.
"reset": Action that usually happen while the user change services and the actual encoder is no longer available because of compatibility (e.g. HEVC).
How Has This Been Tested?
Everything work as expected.
Types of changes
- Bug fix (non-breaking change which fixes an issue)
Checklist:
- [x] My code has been run through clang-format.
- [x] I have read the contributing document.
- [x] My code is not on the master branch.
- [x] The code has been tested.
- [x] All commit messages are properly formatted and commits squashed where appropriate.
- [x] I have included updates to all appropriate documentation.