Commit 9c178785 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

tests: videofilter: ensure initial segment event

parent bdb60766
......@@ -81,12 +81,17 @@ check_filter_caps (const gchar * name, GstCaps * caps, gint size,
GstElement *filter;
GstBuffer *inbuffer, *outbuffer;
gint i;
GstSegment segment;
filter = setup_filter (name, prop, varargs);
fail_unless (gst_element_set_state (filter,
"could not set to playing");
/* ensure segment (format) properly setup */
gst_segment_init (&segment, GST_FORMAT_TIME);
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
gst_pad_set_caps (mysrcpad, caps);
for (i = 0; i < num_buffers; ++i) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment