aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-08 22:25:02 +0200
committerMax Kellermann <max@duempel.org>2012-08-08 22:29:09 +0200
commit0b9e91229791e143d5da79f14cf7012ead9c3bc7 (patch)
treec19c320ce05b2396baaa8235d419a1f1d3cbcc71 /src/player_thread.c
parentd35d2b269f77a0c4ec5fac9ac2df6d107b5b2d6d (diff)
downloadmpd-0b9e91229791e143d5da79f14cf7012ead9c3bc7.tar.gz
mpd-0b9e91229791e143d5da79f14cf7012ead9c3bc7.tar.xz
mpd-0b9e91229791e143d5da79f14cf7012ead9c3bc7.zip
player_control: rename attribute "error" to "error_type"
Diffstat (limited to 'src/player_thread.c')
-rw-r--r--src/player_thread.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index 102401d6d..a19e1db8e 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_DECODER;
+ pc->error_type = 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_OUTPUT;
+ pc->error_type = 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_DECODER;
+ pc->error_type = 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_OUTPUT;
+ pc->error_type = PLAYER_ERROR_OUTPUT;
/* pause: the user may resume playback as soon as an
audio output becomes available */