aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-27 02:03:07 -0700
committerEric Wong <normalperson@yhbt.net>2008-09-28 14:19:00 -0700
commit7812cd9286fa7581b5ea18337e875ad98a2d8bd6 (patch)
treeba9899abacb25162ec0c8e64eea06033748cc5ad /src/outputBuffer.c
parentc7955f31bc044510ed3a2fb84c5e6590e8cbd428 (diff)
downloadmpd-7812cd9286fa7581b5ea18337e875ad98a2d8bd6.tar.gz
mpd-7812cd9286fa7581b5ea18337e875ad98a2d8bd6.tar.xz
mpd-7812cd9286fa7581b5ea18337e875ad98a2d8bd6.zip
advance to the next song on decoder errors
Fix this regression introduced in the core rewrite so that we now skip to the next song when we encounter an error with the song we tried to decode.
Diffstat (limited to 'src/outputBuffer.c')
-rw-r--r--src/outputBuffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c
index ac0f420d8..606877dd0 100644
--- a/src/outputBuffer.c
+++ b/src/outputBuffer.c
@@ -115,7 +115,8 @@ void ob_trigger_action(enum ob_action action)
if (pthread_equal(pthread_self(), dc.thread))
assert(action == OB_ACTION_PLAY ||
action == OB_ACTION_SEEK_START ||
- action == OB_ACTION_SEEK_FINISH);
+ action == OB_ACTION_SEEK_FINISH ||
+ action == OB_ACTION_RESET);
else
assert(action != OB_ACTION_PLAY &&
action != OB_ACTION_SEEK_START &&