Fixed unspecified monitor streaming the whole X

This commit is contained in:
kiralycraft
2021-02-28 17:56:38 +02:00
parent b336bf2fcb
commit fe3784454a
2 changed files with 6 additions and 2 deletions

View File

@@ -105,7 +105,8 @@ video_t video {
{}, // encoder
{}, // adapter_name
{} // output_name
{}, // output_name
-1
};
audio_t audio {};
@@ -371,6 +372,8 @@ void apply_config(std::unordered_map<std::string, std::string> &&vars) {
string_f(vars, "audio_sink", audio.sink);
int_between_f(vars, "linux_monitor_id", video.linux_monitor_id, { 0, 32 });
string_restricted_f(vars, "origin_pin_allowed", nvhttp.origin_pin_allowed, {
"pc"sv, "lan"sv, "wan"sv
});