Backport of "wasapisrc: fix segtotal value being always 2 due to an unused variable" into 1.16
Backport of !311 (merged) into 1.16 branch.
The 'MAX' expression used to set segtotal always returned 2 because the unused and uninitialized variable buffer_frame_count was always 0
Edited by Tim-Philipp Müller