Crash when wasapisink is removed from pipeline.
Submitted by Marcos Kintschner
Link to original bug (#796581)
Description
When wasapi is stopped (state set to NULL) and removed from pipeline, the program crashes. I've pretty much followed this example https://gstreamer.freedesktop.org/documentation/application-development/advanced/pipeline-manipulation.html#dynamically-changing-the-pipeline (but used only wasapisrc, audioconvert and wasapisink).
The error shown on log is the following:
:00:07.985599364 5144 042788A0 INFO wasapisink gstwasapisink.c:680:gst_wasapi_sink_reset:<autoaudiosink0-actual-sink-wasapi>
reset called
0:00:07.985654852 5144 042788A0 ERROR wasapisink gstwasapisink.c:687:gst_wasapi_sink_reset:<autoaudiosink0-actual-sink-wasapi>
IAudioClient::Stop failed (1): Incorrect function.
Version: 1.14.1