mxfdemux: Fix event handling in unit test
This commit is contained in:
parent
167e11b176
commit
14cd3a0dc4
@ -237,6 +237,7 @@ GST_START_TEST (test_push)
|
|||||||
GstElement *mxfdemux;
|
GstElement *mxfdemux;
|
||||||
GstBuffer *buffer;
|
GstBuffer *buffer;
|
||||||
GstPad *sinkpad;
|
GstPad *sinkpad;
|
||||||
|
GstCaps *caps;
|
||||||
|
|
||||||
have_data = FALSE;
|
have_data = FALSE;
|
||||||
have_eos = FALSE;
|
have_eos = FALSE;
|
||||||
@ -263,6 +264,10 @@ GST_START_TEST (test_push)
|
|||||||
gst_pad_set_active (mysinkpad, TRUE);
|
gst_pad_set_active (mysinkpad, TRUE);
|
||||||
gst_pad_set_active (mysrcpad, 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);
|
gst_element_set_state (mxfdemux, GST_STATE_PLAYING);
|
||||||
|
|
||||||
fail_unless (gst_pad_push (mysrcpad, buffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (mysrcpad, buffer) == GST_FLOW_OK);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user