summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-05-15 11:28:04 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-05-15 11:28:56 +0200
commit167e11b176ab04691183fa0f203a9495c00d804c (patch)
tree25bef91010a5904e3807912ae4e5b93ea6718043 /tests
parent97e42f82dc21efd34fccbc9ab75785b74097ea14 (diff)
downloadgstreamer-plugins-bad-167e11b176ab04691183fa0f203a9495c00d804c.tar.gz
insertbin: Fix event handling in unit test
Diffstat (limited to 'tests')
-rw-r--r--tests/check/libs/insertbin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/check/libs/insertbin.c b/tests/check/libs/insertbin.c
index b98c94a54..cc45c598f 100644
--- a/tests/check/libs/insertbin.c
+++ b/tests/check/libs/insertbin.c
@@ -151,6 +151,7 @@ GST_START_TEST (test_insertbin_simple)
GstElement *elem4;
GstPad *srcpad;
GstPad *sinkpad;
+ GstCaps *caps;
g_mutex_init (&mutex);
g_cond_init (&cond);
@@ -182,6 +183,10 @@ GST_START_TEST (test_insertbin_simple)
fail_unless (gst_element_set_state (insertbin,
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS);
+ caps = gst_caps_new_empty_simple ("video/test");
+ gst_check_setup_events (srcpad, insertbin, caps, GST_FORMAT_BYTES);
+ gst_caps_unref (caps);
+
fail_unless (cb_count == 0);
fail_unless (buffers == NULL);