mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
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:
parent
c747711ac5
commit
1589cb737b
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue