Commit 8a9a3039 authored by Nicolas Dufresne's avatar Nicolas Dufresne Committed by Sebastian Dröge
Browse files

videofilter: Unit test send SEGMENT before CAPS
parent 43f9934b
......@@ -88,12 +88,12 @@ check_filter_caps (const gchar * name, GstCaps * caps, gint size,
"could not set to playing");
gst_pad_set_caps (mysrcpad, caps);
/* 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) {
inbuffer = gst_buffer_new_and_alloc (size);
/* makes valgrind's memcheck happier */
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