feat(rtsp): add option to limit packetsize for clients that cannot configure it (#5153)
Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
This commit is contained in:
@@ -544,6 +544,7 @@ namespace config {
|
||||
|
||||
ENCRYPTION_MODE_NEVER, // lan_encryption_mode
|
||||
ENCRYPTION_MODE_OPPORTUNISTIC, // wan_encryption_mode
|
||||
0, // packetsize
|
||||
};
|
||||
|
||||
nvhttp_t nvhttp {
|
||||
@@ -1252,6 +1253,7 @@ namespace config {
|
||||
|
||||
int_between_f(vars, "lan_encryption_mode", stream.lan_encryption_mode, {0, 2});
|
||||
int_between_f(vars, "wan_encryption_mode", stream.wan_encryption_mode, {0, 2});
|
||||
int_between_f(vars, "packetsize", stream.packetsize, {0, PACKETSIZE_MAX});
|
||||
|
||||
path_f(vars, "file_apps", stream.file_apps);
|
||||
#ifndef __ANDROID__
|
||||
|
||||
Reference in New Issue
Block a user