wasapisrc: unable to stop pipeline when loopback is enabled
Unable to stop the pipeline when loopback capture is enabled and no audio is played in the system.
As discussed with @nirbheek on the hackfest, the wasapisrc element is blocked waiting audio in this function https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/blob/master/sys/wasapi/gstwasapisrc.c#L574
A timeout should used in order to allow the element to check the state.
The issue can be reproduce using this pipeline
wasapisrc loopback=true ! fakesink