1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

whitespace

This commit is contained in:
albfan 2016-10-23 12:15:55 +02:00 committed by Alberto Fanjul
parent 4e67272f2f
commit 8151bb8cbd

View file

@ -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, ";");
} }
} }
} }
} }