y4menc-test: Send inital events
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 9 May 2013 22:21:54 +0000 (18:21 -0400)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 11 May 2013 07:11:56 +0000 (09:11 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=700033

tests/check/elements/y4menc.c

index a032562bba9fca7489c1e2ba952637b77b5f611a..2117ada8b9c6b2ee75adb70595e914e25f26238e 100644 (file)
@@ -99,7 +99,7 @@ GST_START_TEST (test_y4m)
   /* makes valgrind's memcheck happier */
   gst_buffer_memset (inbuffer, 0, 0, size);
   caps = gst_caps_from_string (VIDEO_CAPS_STRING);
-  fail_unless (gst_pad_set_caps (mysrcpad, caps));
+  gst_check_setup_events (mysrcpad, y4menc, caps, GST_FORMAT_TIME);
   gst_caps_unref (caps);
   GST_BUFFER_TIMESTAMP (inbuffer) = 0;
   ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);