Only initialize input when streaming

This commit is contained in:
Cameron Gutman 2015-05-15 01:10:09 +00:00
parent 6be4ffef9f
commit ad487cd5ee

View File

@ -274,14 +274,13 @@ int main(int argc, char* argv[]) {
} }
} }
input_init(mapping);
client_init(address); client_init(address);
if (strcmp("list", action) == 0) { if (strcmp("list", action) == 0) {
pair_check(); pair_check();
applist(address); applist(address);
} else if (strcmp("stream", action) == 0) { } else if (strcmp("stream", action) == 0) {
input_init(mapping);
pair_check(); pair_check();
stream(&config, address, app, sops, localaudio); stream(&config, address, app, sops, localaudio);
} else if (strcmp("pair", action) == 0) } else if (strcmp("pair", action) == 0)