autoconvert: Fix event handling in unit test
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 15 May 2013 08:23:49 +0000 (10:23 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 15 May 2013 08:23:49 +0000 (10:23 +0200)
tests/check/elements/autoconvert.c

index a6458fc..532f6b8 100644 (file)
@@ -100,7 +100,7 @@ GST_START_TEST (test_autoconvert_simple)
 
   /* Setting original caps */
   caps = gst_caps_from_string ("test/caps,type=(int)1");
-  fail_unless (gst_pad_set_caps (test_src_pad, caps));
+  gst_check_setup_events (test_src_pad, autoconvert, caps, GST_FORMAT_BYTES);
   gst_caps_unref (caps);
 
   /* Push 10 items */