check: Use the name parameter of gst_check_setup_src_pad_by_name() and the sink variant

This was hardcoded to "sink" / "src" by accident in previous refactoring.
This commit is contained in:
Sebastian Dröge 2014-09-15 13:06:40 +03:00
parent f8a4bbe682
commit af09e548c3

View file

@ -266,8 +266,7 @@ gst_check_setup_src_pad_by_name (GstElement * element,
GstPadTemplate *ptmpl = gst_static_pad_template_get (tmpl);
GstPad *srcpad;
srcpad =
gst_check_setup_src_pad_by_name_from_template (element, ptmpl, "sink");
srcpad = gst_check_setup_src_pad_by_name_from_template (element, ptmpl, name);
gst_object_unref (ptmpl);
@ -394,7 +393,7 @@ gst_check_setup_sink_pad_by_name (GstElement * element,
GstPad *sinkpad;
sinkpad =
gst_check_setup_sink_pad_by_name_from_template (element, ptmpl, "src");
gst_check_setup_sink_pad_by_name_from_template (element, ptmpl, name);
gst_object_unref (ptmpl);