mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
tests: videofilter: ensure initial segment event
This commit is contained in:
parent
bdb60766b4
commit
9c1787851d
1 changed files with 5 additions and 0 deletions
|
@ -81,12 +81,17 @@ check_filter_caps (const gchar * name, GstCaps * caps, gint size,
|
||||||
GstElement *filter;
|
GstElement *filter;
|
||||||
GstBuffer *inbuffer, *outbuffer;
|
GstBuffer *inbuffer, *outbuffer;
|
||||||
gint i;
|
gint i;
|
||||||
|
GstSegment segment;
|
||||||
|
|
||||||
filter = setup_filter (name, prop, varargs);
|
filter = setup_filter (name, prop, varargs);
|
||||||
fail_unless (gst_element_set_state (filter,
|
fail_unless (gst_element_set_state (filter,
|
||||||
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS,
|
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS,
|
||||||
"could not set to playing");
|
"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);
|
gst_pad_set_caps (mysrcpad, caps);
|
||||||
|
|
||||||
for (i = 0; i < num_buffers; ++i) {
|
for (i = 0; i < num_buffers; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue