mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +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
49c6f923de
commit
84c6e885f1
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue