wasapi2sink: Fix ringbuffer object leak

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2315>
This commit is contained in:
Seungha Yang 2021-06-10 01:09:44 +09:00 committed by GStreamer Marge Bot
parent cd9b96e143
commit a1350852e7

View file

@ -302,6 +302,7 @@ gst_wasapi2_sink_get_caps (GstBaseSink * bsink, GstCaps * filter)
/* Get caps might be able to block if device is not activated yet */ /* Get caps might be able to block if device is not activated yet */
caps = gst_wasapi2_ring_buffer_get_caps (ringbuffer); caps = gst_wasapi2_ring_buffer_get_caps (ringbuffer);
gst_object_unref (ringbuffer);
} else { } else {
GST_OBJECT_UNLOCK (bsink); GST_OBJECT_UNLOCK (bsink);
} }