output_thread: leave the pause loop on failure

When the pause() method fails, leave the pause loop, because calling
pause() on a closed device is not allowed.
This commit is contained in:
Max Kellermann 2009-02-10 22:08:05 +01:00
parent bd8ecba449
commit a96993f655

View File

@ -86,6 +86,7 @@ static void ao_pause(struct audio_output *ao)
ao->plugin->close(ao->data);
pcm_convert_deinit(&ao->convert_state);
ao->open = false;
break;
}
} while (ao->command == AO_COMMAND_NONE);
} else {