mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
insertbin: Fix event handling in unit test
This commit is contained in:
parent
97e42f82dc
commit
167e11b176
1 changed files with 5 additions and 0 deletions
|
@ -151,6 +151,7 @@ GST_START_TEST (test_insertbin_simple)
|
||||||
GstElement *elem4;
|
GstElement *elem4;
|
||||||
GstPad *srcpad;
|
GstPad *srcpad;
|
||||||
GstPad *sinkpad;
|
GstPad *sinkpad;
|
||||||
|
GstCaps *caps;
|
||||||
|
|
||||||
g_mutex_init (&mutex);
|
g_mutex_init (&mutex);
|
||||||
g_cond_init (&cond);
|
g_cond_init (&cond);
|
||||||
|
@ -182,6 +183,10 @@ GST_START_TEST (test_insertbin_simple)
|
||||||
fail_unless (gst_element_set_state (insertbin,
|
fail_unless (gst_element_set_state (insertbin,
|
||||||
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS);
|
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 (cb_count == 0);
|
||||||
fail_unless (buffers == NULL);
|
fail_unless (buffers == NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue