directsoundsink GST_MESSAGE_ERROR on disconnecting an USB device in 1.18.0
After upgrading from 1.16.2 to 1.18.0, I get GST_MESSAGE_ERROR when disconnecting an USB device on Windows 10, instead of continuing playback on a different device like in the previous version. Looks like this error shouldn't be sent at all.
debug string: ../gst-plugins-good-1.18.0/sys/directsound/gstdirectsoundsink.c(702): gst_directsound_sink_write (): /GstPlayBin:playbin-0/GstPlaySink:playsink/GstBin:abin/GstBin:audiobin/GstDirectSoundSink:directsoundsink-1
Gstreamer error: Domain: 3947 Code: 6 "IDirectSoundBuffer_GetStatus The operation completed successfully.\r\n, IDirectSoundBuffer_GetCurrentPosition: The operation completed successfully.\r\n, dwStatus: 0"