tests: vp9enc: enforce I420 format
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Mon, 8 Jun 2020 07:33:10 +0000 (09:33 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Mon, 8 Jun 2020 15:58:29 +0000 (17:58 +0200)
Test was not enforcing a video format on videotestsrc. I420 was picked
as it was the first format in GST_VIDEO_FORMATS_ALL which will no longer
be true (gst-plugins-base!689).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/615>

tests/check/elements/vp9enc.c

index b7ae12f..de9eabb 100644 (file)
@@ -43,7 +43,7 @@ GST_START_TEST (test_encode_lag_in_frames)
   gint i;
 
   gst_harness_add_src_parse (h, "videotestsrc is-live=true pattern=black ! "
-      "capsfilter caps=\"video/x-raw,width=320,height=240,framerate=25/1\"",
+      "capsfilter caps=\"video/x-raw,format=I420,width=320,height=240,framerate=25/1\"",
       TRUE);
 
   /* Push 20 buffers into the encoder */