From 9c1787851d7f7023a7f575c7bc047c9c4168d543 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 26 Mar 2012 18:26:40 +0200 Subject: [PATCH] tests: videofilter: ensure initial segment event --- tests/check/elements/videofilter.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/check/elements/videofilter.c b/tests/check/elements/videofilter.c index 6feca6d..25e33c1 100644 --- a/tests/check/elements/videofilter.c +++ b/tests/check/elements/videofilter.c @@ -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, GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS, "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) { -- 2.7.4