Skip to content

Commit

Permalink
o Qualify which transition is not allowed.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeller committed Jan 29, 2014
1 parent e2eb785 commit 917bd1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/upnp_transport.c
Expand Up @@ -852,7 +852,7 @@ static int stop(struct action_event *event)
case TRANSPORT_NO_MEDIA_PRESENT:
/* action not allowed in these states - error 701 */
upnp_set_error(event, UPNP_TRANSPORT_E_TRANSITION_NA,
"Transition not allowed; allowed=%s",
"Transition to STOP not allowed; allowed=%s",
get_var(TRANSPORT_VAR_CUR_TRANSPORT_ACTIONS));

break;
Expand Down Expand Up @@ -924,7 +924,7 @@ static int play(struct action_event *event)
case TRANSPORT_RECORDING:
/* action not allowed in these states - error 701 */
upnp_set_error(event, UPNP_TRANSPORT_E_TRANSITION_NA,
"Transition not allowed; allowed=%s",
"Transition to PLAY not allowed; allowed=%s",
get_var(TRANSPORT_VAR_CUR_TRANSPORT_ACTIONS));
rc = -1;
break;
Expand Down Expand Up @@ -959,7 +959,7 @@ static int pause_stream(struct action_event *event)
default:
/* action not allowed in these states - error 701 */
upnp_set_error(event, UPNP_TRANSPORT_E_TRANSITION_NA,
"Transition not allowed; allowed=%s",
"Transition to PAUSE not allowed; allowed=%s",
get_var(TRANSPORT_VAR_CUR_TRANSPORT_ACTIONS));
rc = -1;
}
Expand Down

0 comments on commit 917bd1d

Please sign in to comment.