fix(video): prevent encoder probing with no active displays (#3592)

This commit is contained in:
Lukas Senionis
2025-01-27 01:21:15 +02:00
committed by GitHub
parent a5c791658e
commit 0631472533
5 changed files with 37 additions and 6 deletions

View File

@@ -110,8 +110,8 @@ namespace display_device {
* The user then accepts that Sunshine is not able to restore the state and "agrees" to
* do it manually.
*
* @return
* @note Whether the function succeeds or fails, the any of the scheduled "retries" from
* @return True if persistence was reset, false otherwise.
* @note Whether the function succeeds or fails, any of the scheduled "retries" from
* other methods will be stopped to not interfere with the user actions.
*
* @examples
@@ -120,6 +120,16 @@ namespace display_device {
*/
[[nodiscard]] bool reset_persistence();
/**
* @brief Check if any of the display devices is currently active.
* @return True if at least one device is active.
*
* @examples
* const auto result = is_any_device_active();
* @examples_end
*/
[[nodiscard]] bool is_any_device_active();
/**
* @brief A tag structure indicating that configuration parsing has failed.
*/