mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
wasapi2sink: Fix ringbuffer object leak
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2315>
This commit is contained in:
parent
cd9b96e143
commit
a1350852e7
1 changed files with 1 additions and 0 deletions
|
@ -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 */
|
||||
caps = gst_wasapi2_ring_buffer_get_caps (ringbuffer);
|
||||
gst_object_unref (ringbuffer);
|
||||
} else {
|
||||
GST_OBJECT_UNLOCK (bsink);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue