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 49c6f923de
commit 84c6e885f1

View file

@ -302,8 +302,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);
@ -436,7 +435,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);