media/libcubeb/disable-assert.patch
author Hiroyuki Ikezoe <hikezoe@mozilla.com>
Thu, 09 Aug 2018 14:27:55 +0900
changeset 430753 5bbec1fa2d0781b95234b619dc2aedbb6686035f
parent 352242 68d1795caf30791fd96bf1b70a3dab0f9c58d6b8
permissions -rw-r--r--
Bug 1469054 - Adapt implementations for adb.start() and adb.stop() and relevant stuff. r=jdescottes MozReview-Commit-ID: LF23OQtXxkj

diff --git a/media/libcubeb/src/cubeb_resampler.cpp b/media/libcubeb/src/cubeb_resampler.cpp
--- a/media/libcubeb/src/cubeb_resampler.cpp
+++ b/media/libcubeb/src/cubeb_resampler.cpp
@@ -50,18 +50,17 @@ passthrough_resampler<T>::passthrough_re
 
 template<typename T>
 long passthrough_resampler<T>::fill(void * input_buffer, long * input_frames_count,
                                     void * output_buffer, long output_frames)
 {
   if (input_buffer) {
     assert(input_frames_count);
   }
-  assert((input_buffer && output_buffer &&
-         *input_frames_count + static_cast<int>(samples_to_frames(internal_input_buffer.length())) >= output_frames) ||
+  assert((input_buffer && output_buffer) ||
          (output_buffer && !input_buffer && (!input_frames_count || *input_frames_count == 0)) ||
          (input_buffer && !output_buffer && output_frames == 0));
 
   if (input_buffer) {
     if (!output_buffer) {
       output_frames = *input_frames_count;
     }
     internal_input_buffer.push(static_cast<T*>(input_buffer),