wasapisink: Don't call CoUninitialize() twice in unprepare()
authorSebastian Dröge <sebastian@centricular.com>
Thu, 3 Jan 2019 13:49:26 +0000 (15:49 +0200)
committerSebastian Dröge <slomo@coaxion.net>
Thu, 3 Jan 2019 15:21:39 +0000 (15:21 +0000)
It has to be symmetric with CoInitialize(), otherwise everything else
will fail.

sys/wasapi/gstwasapisink.c

index fd0acee..4adebe8 100644 (file)
@@ -577,8 +577,6 @@ gst_wasapi_sink_unprepare (GstAudioSink * asink)
 {
   GstWasapiSink *self = GST_WASAPI_SINK (asink);
 
-  CoUninitialize ();
-
   if (self->client != NULL) {
     IAudioClient_Stop (self->client);
   }