Actually follow user's choice for broadcasting encoder support when first connecting with headless mode

This commit is contained in:
Yukino Song
2025-01-02 03:55:23 +08:00
parent ae4dfeaac0
commit d19906b7a5
2 changed files with 9 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
#include "logging.h" #include "logging.h"
#include "nvhttp.h" #include "nvhttp.h"
#include "rtsp.h" #include "rtsp.h"
#include "video.h"
#include "utility.h" #include "utility.h"
#include "platform/common.h" #include "platform/common.h"
@@ -1231,6 +1232,9 @@ namespace config {
std::cout << "Warning: Unrecognized configurable option ["sv << var << ']' << std::endl; std::cout << "Warning: Unrecognized configurable option ["sv << var << ']' << std::endl;
} }
} }
::video::active_hevc_mode = video.hevc_mode;
::video::active_av1_mode = video.av1_mode;
} }
int int

View File

@@ -970,7 +970,11 @@ namespace video {
int active_hevc_mode; int active_hevc_mode;
int active_av1_mode; int active_av1_mode;
bool last_encoder_probe_supported_ref_frames_invalidation = false; bool last_encoder_probe_supported_ref_frames_invalidation = false;
std::array<bool, 3> last_encoder_probe_supported_yuv444_for_codec = {}; std::array<bool, 3> last_encoder_probe_supported_yuv444_for_codec = {
true,
true,
true
};
void void
reset_display(std::shared_ptr<platf::display_t> &disp, const platf::mem_type_e &type, const std::string &display_name, const config_t &config) { reset_display(std::shared_ptr<platf::display_t> &disp, const platf::mem_type_e &type, const std::string &display_name, const config_t &config) {