rtsp-media: Plug memory leak

The get-storage signal of rtpbin increases the ref count of the storage.
So we have to unref it after usage.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/155>
This commit is contained in:
David Phung 2020-09-28 22:03:47 +02:00
parent c747711ac5
commit 1589cb737b

View file

@ -1662,6 +1662,8 @@ update_stream_storage_size (GstRTSPMedia * media, GstRTSPStream * stream,
size_time = (media->priv->latency + 50) * GST_MSECOND;
g_object_set (storage, "size-time", size_time, NULL);
g_object_unref (storage);
}
}