Bug 1108455 - r=kinetik
authorPaul Adenot <paul@paul.cx>
Tue, 16 Dec 2014 18:45:40 +0100
changeset 219966 d77fe45d2ab55cd3eddf3e87af91182a5e176f58
parent 219965 c233ca053f7c5f19896e32a3367e74778d05f156
child 219967 df76551266c3987c2477f9a2239b999d4e6815ff
push id52962
push userpaul@paul.cx
push dateTue, 16 Dec 2014 18:17:40 +0000
treeherdermozilla-inbound@d77fe45d2ab5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik
bugs1108455
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1108455 - r=kinetik
media/libcubeb/src/cubeb_wasapi.cpp
--- a/media/libcubeb/src/cubeb_wasapi.cpp
+++ b/media/libcubeb/src/cubeb_wasapi.cpp
@@ -313,20 +313,18 @@ wasapi_stream_render_loop(LPVOID stream)
       if (FAILED(hr)) {
         LOG("Failed to get padding");
         is_playing = false;
         continue;
       }
       assert(padding <= stm->buffer_frame_count);
 
       if (stm->draining) {
-        if (padding == 0) {
-          stm->state_callback(stm, stm->user_ptr, CUBEB_STATE_DRAINED);
-          is_playing = false;
-        }
+        stm->state_callback(stm, stm->user_ptr, CUBEB_STATE_DRAINED);
+        is_playing = false;
         continue;
       }
 
       long available = stm->buffer_frame_count - padding;
 
       if (available == 0) {
         continue;
       }