diff options
author | Max Kellermann <max@duempel.org> | 2012-08-08 22:22:00 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-08 22:28:59 +0200 |
commit | d35d2b269f77a0c4ec5fac9ac2df6d107b5b2d6d (patch) | |
tree | d10bf911f7dcac2015da18946f73bc91a5fff0e8 /src/player_thread.c | |
parent | fa84ed412db4cc033989d1b60535dd6207e1ff23 (diff) | |
download | mpd-d35d2b269f77a0c4ec5fac9ac2df6d107b5b2d6d.tar.gz mpd-d35d2b269f77a0c4ec5fac9ac2df6d107b5b2d6d.tar.xz mpd-d35d2b269f77a0c4ec5fac9ac2df6d107b5b2d6d.zip |
player_control: rename player_error enum values
Diffstat (limited to 'src/player_thread.c')
-rw-r--r-- | src/player_thread.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/player_thread.c b/src/player_thread.c index c0243fa00..102401d6d 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -238,7 +238,7 @@ player_wait_for_decoder(struct player *player) if (decoder_lock_has_failed(dc)) { player_lock(pc); pc->errored_song = dc->song; - pc->error = PLAYER_ERROR_FILE; + pc->error = PLAYER_ERROR_DECODER; pc->next_song = NULL; player_unlock(pc); @@ -322,7 +322,7 @@ player_open_output(struct player *player) player->paused = true; player_lock(pc); - pc->error = PLAYER_ERROR_AUDIO; + pc->error = PLAYER_ERROR_OUTPUT; pc->state = PLAYER_STATE_PAUSE; player_unlock(pc); @@ -353,7 +353,7 @@ player_check_decoder_startup(struct player *player) player_lock(pc); pc->errored_song = dc->song; - pc->error = PLAYER_ERROR_FILE; + pc->error = PLAYER_ERROR_DECODER; player_unlock(pc); return false; @@ -789,7 +789,7 @@ play_next_chunk(struct player *player) player_lock(pc); - pc->error = PLAYER_ERROR_AUDIO; + pc->error = PLAYER_ERROR_OUTPUT; /* pause: the user may resume playback as soon as an audio output becomes available */ |