mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
adder: Release some request pads properly in the unit test
This commit is contained in:
parent
1af30c7673
commit
69e95ffb24
1 changed files with 6 additions and 0 deletions
|
@ -974,6 +974,7 @@ GST_START_TEST (test_clip)
|
|||
ck_assert_int_eq (ret, GST_FLOW_OK);
|
||||
fail_unless (handoff_buffer == NULL);
|
||||
|
||||
gst_element_release_request_pad (adder, sinkpad);
|
||||
gst_object_unref (sinkpad);
|
||||
gst_element_set_state (bin, GST_STATE_NULL);
|
||||
gst_bus_remove_signal_watch (bus);
|
||||
|
@ -1240,6 +1241,11 @@ GST_START_TEST (test_flush_start_flush_stop)
|
|||
fail_if (GST_PAD_IS_FLUSHING (adder_src));
|
||||
gst_object_unref (adder_src);
|
||||
|
||||
gst_element_release_request_pad (adder, sinkpad1);
|
||||
gst_object_unref (sinkpad1);
|
||||
gst_element_release_request_pad (adder, sinkpad2);
|
||||
gst_object_unref (sinkpad2);
|
||||
|
||||
/* cleanup */
|
||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||
gst_object_unref (pipeline);
|
||||
|
|
Loading…
Reference in a new issue