tests: fix redenc tests
authorMathieu Duponchelle <mathieu@centricular.com>
Tue, 27 Feb 2018 15:33:53 +0000 (16:33 +0100)
committerMathieu Duponchelle <mathieu@centricular.com>
Tue, 27 Feb 2018 15:34:51 +0000 (16:34 +0100)
The default of the allow-no-red-blocks property was changed in a
previous commit, thus breaking the test assumptions

tests/check/elements/rtpred.c

index e824ade..6db4c38 100644 (file)
@@ -426,9 +426,10 @@ GST_START_TEST (rtpredenc_passthrough)
 {
   GstBuffer *bufinp, *bufout;
   GstHarness *h = gst_harness_new ("rtpredenc");
+
+  g_object_set (h->element, "allow-no-red-blocks", FALSE, NULL);
   gst_harness_set_src_caps_str (h, GST_RTP_RED_ENC_CAPS_STR);
 
-  /* Passthrough by default */
   bufinp =
       _new_rtp_buffer (FALSE, 0, PT_MEDIA, 0, TIMESTAMP_NTH (0), 0xabe2b0b, 0);
   bufout = gst_harness_push_and_pull (h, bufinp);