diff options
| author | Jaromil <jaromil@dyne.org> | 2012-02-21 11:47:06 (GMT) |
|---|---|---|
| committer | Jaromil <jaromil@dyne.org> | 2012-02-21 11:47:06 (GMT) |
| commit | d25f7b5d3fe67570c9cb062cff6646407f17a561 (patch) | |
| tree | 68bdb3de9d833add39bf92e5e577167296b981dd | |
| parent | cd64abc335f06346fb76ba7a39c34079be543902 (diff) | |
| -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: |

