diff options
author | Matthew Gregan <[email protected]> | 2016-06-07 14:14:52 +1200 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2016-06-07 14:14:52 +1200 |
commit | f20762315925b5041f3ab189a6347ebc411a6ec3 (patch) | |
tree | 37f24324bad551c2d3561a6fc28974207df9f2cd /src/cubeb_resampler.cpp | |
parent | 71ab5a404ebb6f8513e23095d82ffab3a46d8a55 (diff) | |
download | cubeb-f20762315925b5041f3ab189a6347ebc411a6ec3.tar.gz cubeb-f20762315925b5041f3ab189a6347ebc411a6ec3.zip |
wasapi,winmm: Fix various VS2015 analysis warnings.
Diffstat (limited to 'src/cubeb_resampler.cpp')
-rw-r--r-- | src/cubeb_resampler.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cubeb_resampler.cpp b/src/cubeb_resampler.cpp index 215749d..a5b8b9f 100644 --- a/src/cubeb_resampler.cpp +++ b/src/cubeb_resampler.cpp @@ -37,12 +37,16 @@ to_speex_quality(cubeb_resampler_quality q) long noop_resampler::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 >= output_frames) || (!input_buffer && (!input_frames_count || *input_frames_count == 0)) || (!output_buffer && output_frames == 0)); if (output_buffer == nullptr) { + assert(input_buffer); output_frames = *input_frames_count; } |