wasapisrc: Correctly handle BUFFERFLAGS_SILENT
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 26 Nov 2019 06:09:32 +0000 (11:39 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 28 Nov 2019 10:43:28 +0000 (10:43 +0000)
commitd9e6f19026880f1f068aabb50c52b9a4d7b524e5
treeb8df3ddfebe886cd9f60ce5a37273a2e4420990b
parent5f92188a1ed42c8cf0b41f7f7e83bceb88803a6e
wasapisrc: Correctly handle BUFFERFLAGS_SILENT

We need to ignore the data we get from WASAPI in this case and write
out silence (zeroes).

Initially reported at https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/808
sys/wasapi/gstwasapisrc.c