diff options
| -rw-r--r-- | src/cmdline.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/cmdline.c b/src/cmdline.c index ab0211a..e3bc5b1 100644 --- a/src/cmdline.c +++ b/src/cmdline.c @@ -80,7 +80,7 @@ void cmdline(int argc, char **argv) { " play start playing the selected file\n" " pause pause currently running playback\n" " stop stop playback and return to menu\n" - " get get the current status of the device\n" + " status print the current status of the device\n" " jump seek to a position in time (00:00:00)\n" "\n" " none means load and play URL, or use - to read xml from stdin\n" @@ -253,14 +253,15 @@ int main(int argc, char **argv) { } break; - case 's': // stop - render_upnp(upnp,"Stop",""); - break; + case 's': - case 'g': // dump a parsable full state of the device - render_upnp(upnp,"GetTransportInfo",""); - parser = GetTransportInfo; - + if(command[2]=='o') // stop + render_upnp(upnp,"Stop",""); + else if(command[2]=='a') { // status + // dump a parsable full state of the device + render_upnp(upnp,"GetTransportInfo",""); + parser = GetTransportInfo; + } break; case 'm': // set the playmode: |

