summaryrefslogtreecommitdiff
path: root/tests/check/elements/x264enc.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-06-08 15:55:28 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-06-08 15:55:42 +0200
commit2ec36a9c0adc6c7f7ff4752abf47907252e84d09 (patch)
tree5e93e04092ef25e10b80d4b7842b73e2f93bbc48 /tests/check/elements/x264enc.c
parent03824f2520dcd503fe86ce2e06eec03bb01f8150 (diff)
elements: Use gst_pad_set_caps() instead of manual event fiddling
Diffstat (limited to 'tests/check/elements/x264enc.c')
-rw-r--r--tests/check/elements/x264enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/check/elements/x264enc.c b/tests/check/elements/x264enc.c
index c6a53c6f..2cee9899 100644
--- a/tests/check/elements/x264enc.c
+++ b/tests/check/elements/x264enc.c
@@ -142,7 +142,7 @@ test_video_profile (const gchar * profile, gint profile_id)
gst_pad_use_fixed_caps (mysinkpad);
caps = gst_caps_from_string (VIDEO_CAPS_STRING);
- fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_caps (caps)));
+ fail_unless (gst_pad_set_caps (mysrcpad, caps));
gst_caps_unref (caps);
/* corresponds to I420 buffer for the size mentioned in the caps */