mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-10 16:45:55 +00:00
videofilter: Unit test send SEGMENT before CAPS
https://bugzilla.gnome.org/show_bug.cgi?id=699966
This commit is contained in:
parent
43f9934ba5
commit
8a9a3039fc
|
@ -88,12 +88,12 @@ check_filter_caps (const gchar * name, GstCaps * caps, gint size,
|
|||
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS,
|
||||
"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 */
|
||||
|
|
Loading…
Reference in a new issue