diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com> | 2020-06-29 20:57:06 +0200 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-07-01 18:33:42 +0000 |
commit | 368c038ef01346c72f7cdc427a40cf94ea40d71a (patch) | |
tree | 30933e712f0778e327b3a8c4d402ae9cc6cc1c7b /gst | |
parent | edd3c4fadf2711aa342491596630ebe496b17b75 (diff) | |
download | gstreamer-plugins-bad-368c038ef01346c72f7cdc427a40cf94ea40d71a.tar.gz |
rtmp2: Mark our memory singleton as leakable
So it doesn't appear in the leaks tracer.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1384>
Diffstat (limited to 'gst')
-rw-r--r-- | gst/rtmp2/rtmp/rtmpconnection.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/rtmp2/rtmp/rtmpconnection.c b/gst/rtmp2/rtmp/rtmpconnection.c index d85f6ff7b..df56b1535 100644 --- a/gst/rtmp2/rtmp/rtmpconnection.c +++ b/gst/rtmp2/rtmp/rtmpconnection.c @@ -208,6 +208,9 @@ init_set_data_frame_value (void) set_data_frame_value = gst_memory_new_wrapped (GST_MEMORY_FLAG_READONLY, (gpointer) data, size, 0, size, bytes, (GDestroyNotify) g_bytes_unref); + GST_MINI_OBJECT_FLAG_SET (set_data_frame_value, + GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED); + gst_amf_node_free (node); } |