зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1123768 - Backout bug 1108455 to avoid truncating the end of audio streams on Vista+. r=kinetik
This commit is contained in:
Родитель
8b005f3fb1
Коммит
14201f3594
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче