Bug 1270062 - Unbust Windows full duplex. a=Tomcat
authorPaul Adenot <paul@paul.cx>
Wed, 04 May 2016 13:28:50 +0200
changeset 296089 369a5ee3a2880a4a98df3a00bf3db8d8f36b181b
parent 296086 311c7ea8803d326cec715404256c86beb8af3804
child 296090 c4f86ad95de8bd9bb32727f7221e5d57e6ec1bfd
child 296212 bf7a7e5b7a7d45f8b6b5d135d9f8453a6b60d7d7
push id76183
push usercbook@mozilla.com
push dateWed, 04 May 2016 11:36:47 +0000
treeherdermozilla-inbound@c4f86ad95de8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersTomcat
bugs1270062
milestone49.0a1
first release with
nightly linux32
369a5ee3a288 / 49.0a1 / 20160504043118 / files
nightly linux64
369a5ee3a288 / 49.0a1 / 20160504043118 / files
nightly mac
369a5ee3a288 / 49.0a1 / 20160504043118 / files
nightly win32
369a5ee3a288 / 49.0a1 / 20160504043118 / files
nightly win64
369a5ee3a288 / 49.0a1 / 20160504043118 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1270062 - Unbust Windows full duplex. a=Tomcat MozReview-Commit-ID: EApTXpnCjz4
media/libcubeb/src/cubeb_wasapi.cpp
--- a/media/libcubeb/src/cubeb_wasapi.cpp
+++ b/media/libcubeb/src/cubeb_wasapi.cpp
@@ -643,17 +643,17 @@ bool get_input_buffer(cubeb_stream * stm
     if (FAILED(hr)) {
       LOG("FAILED to release intput buffer");
       return false;
     }
     offset += packet_size * input_channel_count;
   }
 
   assert(stm->linear_input_buffer.length() >= total_available_input &&
-         offset == total_available_input);
+         offset == total_available_input * input_channel_count);
 
   return true;
 }
 
 /* Get an output buffer from the render_client. It has to be released before
  * exiting the callback. */
 bool get_output_buffer(cubeb_stream * stm, size_t max_frames, float *& buffer, size_t & frame_count)
 {