wasapi2ringbuffer: Close IAudioClient on GstAudioRingBuffer::release
authorSeungha Yang <seungha@centricular.com>
Mon, 12 Jul 2021 13:17:22 +0000 (22:17 +0900)
committerSeungha Yang <seungha@centricular.com>
Mon, 12 Jul 2021 18:36:37 +0000 (03:36 +0900)
commit5932a853f83f830779dc287411b9da4c2424b437
treefaa21d7901fc96a941a531dd87c8ac58c8882115
parentfa4fb4c47f54df5a0cd81abe9fcfa78069238878
wasapi2ringbuffer: Close IAudioClient on GstAudioRingBuffer::release

IAudioClient interface is not reusable once it's initialized.
So we should close the handle and reopen it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2402>
sys/wasapi2/gstwasapi2ringbuffer.cpp