Bug 1123768 - Backout bug 1108455 to avoid truncating the end of audio streams on Vista+. r=kinetik

This commit is contained in:
Paul Adenot 2015-02-09 14:43:03 +01:00
parent c566e5e21b
commit 3800ae52f4

View File

@ -545,8 +545,10 @@ wasapi_stream_render_loop(LPVOID stream)
assert(padding <= stm->buffer_frame_count);
if (stm->draining) {
stm->state_callback(stm, stm->user_ptr, CUBEB_STATE_DRAINED);
is_playing = false;
if (padding == 0) {
stm->state_callback(stm, stm->user_ptr, CUBEB_STATE_DRAINED);
is_playing = false;
}
continue;
}