wasapisrc: unable to change state from PLAYING to NULL and back to PLAYING
Unable to start and stop multiple times audio grabbing pipeline using wasapisrc. Using directsoundsrc it is possible to restart it multiple times without any error.
When the pipeline is started and stopped multiple times (due to audio restart) this error is raised:
WARN audio - gstreamer error from element '/GstPipeline:pipeline1/GstWasapiSrc:audiosrc' when grabbing: Could not open resource for reading. WARN audio - Additional debug information: ../gst-plugins-bad/sys/wasapi/gstwasapisrc.c(407): gst_wasapi_src_open (): /GstPipeline:pipeline1/GstWasapiSrc:audiosrc
If you try to run the attached test code it will fail.
wasapi_restart_test.c