Refine stream for secondary

This commit is contained in:
MrDave
2019-10-20 15:13:38 -06:00
committed by Mr-Dave
parent 20ea10d3a3
commit 0eb2a49e1a
4 changed files with 36 additions and 26 deletions

View File

@@ -1186,7 +1186,11 @@ static void webu_answer_strm_type(struct webui_ctx *webui) {
} else if ((mystreq(webui->uri_cmd1,"secondary")) ||
(mystreq(webui->uri_camid,"secondary"))){
webui->cnct_type = WEBUI_CNCT_SECONDARY;
if (webui->cam->algsec_inuse) {
webui->cnct_type = WEBUI_CNCT_SECONDARY;
} else {
webui->cnct_type = WEBUI_CNCT_UNKNOWN;
}
} else if ((mystreq(webui->uri_cmd1,"current")) ||
(mystreq(webui->uri_camid,"current"))){