add unlink and some asserts

Original commit message from CVS:
add unlink and some asserts
This commit is contained in:
Thomas Vander Stichele 2006-01-14 14:12:26 +00:00
parent 8455a31e67
commit 19e6cc15f1
2 changed files with 10 additions and 1 deletions

View file

@ -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;

View file

@ -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;