mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
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:
parent
f8a4bbe682
commit
af09e548c3
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue