mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
whitespace
This commit is contained in:
parent
4e67272f2f
commit
8151bb8cbd
1 changed files with 20 additions and 20 deletions
|
@ -251,29 +251,29 @@ static void sink_handle_set_parameter(struct ctl_sink *s,
|
||||||
r = rtsp_message_read(m, "{<&>}", "wfd_uibc_capability", &uibc_config);
|
r = rtsp_message_read(m, "{<&>}", "wfd_uibc_capability", &uibc_config);
|
||||||
if (r >= 0) {
|
if (r >= 0) {
|
||||||
if (!s->uibc_config || strcmp(s->uibc_config, uibc_config)) {
|
if (!s->uibc_config || strcmp(s->uibc_config, uibc_config)) {
|
||||||
nu = strdup(uibc_config);
|
nu = strdup(uibc_config);
|
||||||
if (!nu)
|
if (!nu)
|
||||||
return cli_vENOMEM();
|
return cli_vENOMEM();
|
||||||
|
|
||||||
free(s->uibc_config);
|
free(s->uibc_config);
|
||||||
s->uibc_config = nu;
|
s->uibc_config = nu;
|
||||||
|
|
||||||
if (!strcasecmp(uibc_config, "none")) {
|
if (!strcasecmp(uibc_config, "none")) {
|
||||||
uibc_enabled = false;
|
uibc_enabled = false;
|
||||||
} else {
|
} else {
|
||||||
char* token = strtok(uibc_config, ";");
|
char* token = strtok(uibc_config, ";");
|
||||||
|
|
||||||
while (token) {
|
while (token) {
|
||||||
if (sscanf(token, "port=%d", &uibc_port)) {
|
if (sscanf(token, "port=%d", &uibc_port)) {
|
||||||
log_debug("UIBC port: %d\n", uibc_port);
|
log_debug("UIBC port: %d\n", uibc_port);
|
||||||
if (uibc_option) {
|
if (uibc_option) {
|
||||||
uibc_enabled = true;
|
uibc_enabled = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
token = strtok(0, ";");
|
token = strtok(0, ";");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue