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
Родитель 8b005f3fb1
Коммит 14201f3594
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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;
}