Commit a68ef497 authored by Max Kellermann's avatar Max Kellermann

don't call quitDecode() in waitOnDecode()

To make the code more consistent, call quitDecode() only at the end of decodeParent().
parent e8bd9ddc
......@@ -71,7 +71,6 @@ static int waitOnDecode(int *decodeWaitedOn)
if (dc.error != DECODE_ERROR_NOERROR) {
pc.errored_song = dc.next_song;
pc.error = PLAYER_ERROR_FILE;
quitDecode();
return -1;
}
......@@ -211,8 +210,10 @@ static void decodeParent(void)
ob_set_lazy(0);
if (waitOnDecode(&decodeWaitedOn) < 0)
if (waitOnDecode(&decodeWaitedOn) < 0) {
quitDecode();
return;
}
pc.elapsedTime = 0;
pc.state = PLAYER_STATE_PLAY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment