Commit f5adfaed authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

tests: rtp payloading: fix pad leak

parent 99dd8fb9
...@@ -321,6 +321,8 @@ rtp_pipeline_run (rtp_pipeline * p) ...@@ -321,6 +321,8 @@ rtp_pipeline_run (rtp_pipeline * p)
static void static void
rtp_pipeline_enable_lists (rtp_pipeline * p, guint mtu_size) rtp_pipeline_enable_lists (rtp_pipeline * p, guint mtu_size)
{ {
GstPad *pad;
/* use buffer lists */ /* use buffer lists */
g_object_set (p->rtppay, "buffer-list", TRUE, NULL); g_object_set (p->rtppay, "buffer-list", TRUE, NULL);
...@@ -330,8 +332,10 @@ rtp_pipeline_enable_lists (rtp_pipeline * p, guint mtu_size) ...@@ -330,8 +332,10 @@ rtp_pipeline_enable_lists (rtp_pipeline * p, guint mtu_size)
} }
/* Add chain list function for the buffer list tests */ /* Add chain list function for the buffer list tests */
gst_pad_set_chain_list_function (gst_element_get_static_pad (p->rtpdepay, pad = gst_element_get_static_pad (p->rtpdepay, "sink");
"sink"), GST_DEBUG_FUNCPTR (rtp_pipeline_chain_list)); gst_pad_set_chain_list_function (pad,
GST_DEBUG_FUNCPTR (rtp_pipeline_chain_list));
gst_object_unref (pad);
} }
/* /*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment