mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
tests: selector: unref peer pad
Do not forget to unref peer's pad on output-selector negotiation tests
This commit is contained in:
parent
5c479aa3a4
commit
e1e81ca16d
1 changed files with 3 additions and 0 deletions
|
@ -435,6 +435,7 @@ GST_START_TEST (test_output_selector_getcaps_none);
|
|||
/* in 'none' mode, the getcaps returns the template, which is ANY */
|
||||
g_assert (gst_caps_is_any (caps));
|
||||
gst_caps_unref (caps);
|
||||
gst_object_unref (pad);
|
||||
}
|
||||
|
||||
fail_unless (gst_element_set_state (sel,
|
||||
|
@ -473,6 +474,7 @@ GST_START_TEST (test_output_selector_getcaps_all);
|
|||
|
||||
g_assert (gst_caps_is_equal (caps, expected));
|
||||
gst_caps_unref (caps);
|
||||
gst_object_unref (pad);
|
||||
}
|
||||
gst_caps_unref (expected);
|
||||
|
||||
|
@ -513,6 +515,7 @@ GST_START_TEST (test_output_selector_getcaps_active);
|
|||
|
||||
g_assert (gst_caps_is_equal (caps, expected));
|
||||
gst_caps_unref (caps);
|
||||
gst_object_unref (pad);
|
||||
}
|
||||
|
||||
fail_unless (gst_element_set_state (sel,
|
||||
|
|
Loading…
Reference in a new issue