mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
wasapi: Don't pass CoTaskMemFree to g_clear_pointer
CoTaskMemFree has a different calling convention than GDestroyNotify and things crash at least with MinGW. https://bugzilla.gnome.org/show_bug.cgi?id=796280
This commit is contained in:
parent
2227ef1304
commit
adb1df3bc1
2 changed files with 4 additions and 2 deletions
|
@ -208,7 +208,8 @@ gst_wasapi_sink_finalize (GObject * object)
|
||||||
{
|
{
|
||||||
GstWasapiSink *self = GST_WASAPI_SINK (object);
|
GstWasapiSink *self = GST_WASAPI_SINK (object);
|
||||||
|
|
||||||
g_clear_pointer (&self->mix_format, CoTaskMemFree);
|
CoTaskMemFree (self->mix_format);
|
||||||
|
self->mix_format = NULL;
|
||||||
|
|
||||||
CoUninitialize ();
|
CoUninitialize ();
|
||||||
|
|
||||||
|
|
|
@ -227,7 +227,8 @@ gst_wasapi_src_finalize (GObject * object)
|
||||||
{
|
{
|
||||||
GstWasapiSrc *self = GST_WASAPI_SRC (object);
|
GstWasapiSrc *self = GST_WASAPI_SRC (object);
|
||||||
|
|
||||||
g_clear_pointer (&self->mix_format, CoTaskMemFree);
|
CoTaskMemFree (self->mix_format);
|
||||||
|
self->mix_format = NULL;
|
||||||
|
|
||||||
CoUninitialize ();
|
CoUninitialize ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue