Provide ability to force a capture method via configuration. (#1063)

Co-authored-by: KuleRucket <luke.d.tucker@gmail.com>
This commit is contained in:
KuleRucket
2023-03-26 03:26:28 +02:00
committed by GitHub
parent 455155a1c9
commit c6548f4271
5 changed files with 89 additions and 21 deletions

View File

@@ -351,6 +351,7 @@ video_t video {
-1,
}, // vt
{}, // capture
{}, // encoder
{}, // adapter_name
{}, // output_name
@@ -882,6 +883,7 @@ void apply_config(std::unordered_map<std::string, std::string> &&vars) {
int_f(vars, "vt_software", video.vt.vt_require_sw, vt::force_software_from_view);
int_f(vars, "vt_realtime", video.vt.vt_realtime, vt::rt_from_view);
string_f(vars, "capture", video.capture);
string_f(vars, "encoder", video.encoder);
string_f(vars, "adapter_name", video.adapter_name);
string_f(vars, "output_name", video.output_name);