mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
add unlink and some asserts
Original commit message from CVS: add unlink and some asserts
This commit is contained in:
parent
8455a31e67
commit
19e6cc15f1
2 changed files with 10 additions and 1 deletions
|
@ -98,7 +98,10 @@ GST_START_TEST (test_hammer_bus)
|
|||
|
||||
gst_object_unref ((GstObject *) test_bus);
|
||||
}
|
||||
GST_END_TEST static gboolean
|
||||
|
||||
GST_END_TEST;
|
||||
|
||||
static gboolean
|
||||
message_func_eos (GstBus * bus, GstMessage * message, gpointer data)
|
||||
{
|
||||
const GstStructure *s;
|
||||
|
|
|
@ -126,6 +126,12 @@ GST_START_TEST (test_link)
|
|||
|
||||
gst_element_set_state (sink, GST_STATE_NULL);
|
||||
gst_element_set_state (src, GST_STATE_NULL);
|
||||
|
||||
ASSERT_OBJECT_REFCOUNT (sink, "sink", 1);
|
||||
ASSERT_OBJECT_REFCOUNT (src, "src", 1);
|
||||
gst_element_unlink_pads (src, "src", sink, "sink");
|
||||
ASSERT_OBJECT_REFCOUNT (sink, "sink", 1);
|
||||
ASSERT_OBJECT_REFCOUNT (src, "src", 1);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
|
Loading…
Reference in a new issue