insertbin: Fix event handling in unit test

This commit is contained in:
Sebastian Dröge 2013-05-15 11:28:04 +02:00
parent 97e42f82dc
commit 167e11b176

View file

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