test: rtpbin_buffer_list: set the chain_list function directly in the test
authorAntonio Ospite <antonio.ospite@collabora.com>
Wed, 6 Mar 2019 18:27:01 +0000 (19:27 +0100)
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>
Mon, 1 Apr 2019 18:42:32 +0000 (18:42 +0000)
The helper function set_chain_function does not really do anything useful, remove it.

tests/check/elements/rtpbin_buffer_list.c

index d241c6b..acdd8b6 100644 (file)
@@ -267,12 +267,6 @@ sink_chain_list (GstPad * pad, GstObject * parent, GstBufferList * list)
   return GST_FLOW_OK;
 }
 
-static void
-set_chain_function (GstPad * pad)
-{
-  gst_pad_set_chain_list_function (pad, GST_DEBUG_FUNCPTR (sink_chain_list));
-}
-
 
 GST_START_TEST (test_bufferlist)
 {
@@ -295,7 +289,8 @@ GST_START_TEST (test_bufferlist)
       "send_rtp_src_0");
   fail_if (sinkpad == NULL);
 
-  set_chain_function (sinkpad);
+  gst_pad_set_chain_list_function (sinkpad,
+      GST_DEBUG_FUNCPTR (sink_chain_list));
 
   gst_pad_set_active (srcpad, TRUE);
   gst_pad_set_active (sinkpad, TRUE);