Switch to unified view

a/scctl_src/scctl.cpp b/scctl_src/scctl.cpp
...
...
111
"    Receivers and make them play from the same uri as the master receiver\n"
111
"    Receivers and make them play from the same uri as the master receiver\n"
112
" -x <renderer> [renderer ...] Reset renderers from Songcast to Playlist\n"
112
" -x <renderer> [renderer ...] Reset renderers from Songcast to Playlist\n"
113
" -S Run as server\n"
113
" -S Run as server\n"
114
" -f If no server is found, scctl will fork one after performing the\n"
114
" -f If no server is found, scctl will fork one after performing the\n"
115
"    requested command, so that the next execution will not have to wait for\n"
115
"    requested command, so that the next execution will not have to wait for\n"
116
"    the discovery timeout.n"
116
"    the discovery timeout.\n"
117
" -r <sender> <renderer> <renderer> : set up the renderers in Receiver mode\n"
117
" -r <sender> <renderer> <renderer> : set up the renderers in Receiver mode\n"
118
"    playing data from the sender. This is like -s but we get the uri from \n"
118
"    playing data from the sender. This is like -s but we get the uri from \n"
119
"    the sender instead of a sibling receiver\n"
119
"    the sender instead of a sibling receiver\n"
120
" -h This help.\n"
120
" -h This help.\n"
121
"\n"
121
"\n"
...
...
396
        vector<string>::iterator beg = toks.begin();
396
        vector<string>::iterator beg = toks.begin();
397
        beg++;
397
        beg++;
398
        string master = *beg;
398
        string master = *beg;
399
        beg++;
399
        beg++;
400
        vector<string> slaves(beg, toks.end());
400
        vector<string> slaves(beg, toks.end());
401
        setReceiversFromReceiver(master, slaves);
401
        ReceiverState mst;
402
        getReceiverState(master, mst);
403
        for (auto it = slaves.begin(); it != slaves.end(); it++) {
404
            ReceiverState st;
405
            getReceiverState(*it, st);
406
            setReceiverPlaying(st, mst.uri, mst.meta);
407
        }
402
    } else if (opflags & OPT_x) {
408
    } else if (opflags & OPT_x) {
403
        if (toks.size() < 2)
409
        if (toks.size() < 2)
404
            return 1;
410
            return 1;
405
        vector<string>::iterator beg = toks.begin();
411
        vector<string>::iterator beg = toks.begin();
406
        beg++;
412
        beg++;