Skip to content

Commit

Permalink
Bug 1123768 - Backout bug 1108455 to avoid truncating the end of audi…
Browse files Browse the repository at this point in the history
…o streams on Vista+. r=kinetik
  • Loading branch information
padenot committed Feb 9, 2015
1 parent 8b005f3 commit 14201f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions media/libcubeb/src/cubeb_wasapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 14201f3

Please sign in to comment.