mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
mxfdemux: Fix event handling in unit test
This commit is contained in:
parent
167e11b176
commit
14cd3a0dc4
1 changed files with 5 additions and 0 deletions
|
@ -237,6 +237,7 @@ GST_START_TEST (test_push)
|
|||
GstElement *mxfdemux;
|
||||
GstBuffer *buffer;
|
||||
GstPad *sinkpad;
|
||||
GstCaps *caps;
|
||||
|
||||
have_data = FALSE;
|
||||
have_eos = FALSE;
|
||||
|
@ -263,6 +264,10 @@ GST_START_TEST (test_push)
|
|||
gst_pad_set_active (mysinkpad, TRUE);
|
||||
gst_pad_set_active (mysrcpad, TRUE);
|
||||
|
||||
caps = gst_caps_new_empty_simple ("application/mxf");
|
||||
gst_check_setup_events (mysrcpad, mxfdemux, caps, GST_FORMAT_BYTES);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
gst_element_set_state (mxfdemux, GST_STATE_PLAYING);
|
||||
|
||||
fail_unless (gst_pad_push (mysrcpad, buffer) == GST_FLOW_OK);
|
||||
|
|
Loading…
Reference in a new issue