playsink: do not link to audio or video filter using padname

... as a sinkpad need not be called "sink", and it is not the case
for e.g. timeoverlay (and friends).

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=776623
This commit is contained in:
Mark Nauwelaerts 2016-12-30 17:55:18 +01:00
parent ad53caf059
commit 28f4e7db12

View file

@ -1866,7 +1866,7 @@ gen_video_chain (GstPlaySink * playsink, gboolean raw, gboolean async)
* floating reference ourselves already */
gst_object_unref (chain->filter);
if (prev) {
if (!gst_element_link_pads_full (prev, "src", chain->filter, "sink",
if (!gst_element_link_pads_full (prev, "src", chain->filter, NULL,
GST_PAD_LINK_CHECK_TEMPLATE_CAPS)) {
goto link_failed;
}
@ -2747,7 +2747,7 @@ gen_audio_chain (GstPlaySink * playsink, gboolean raw)
* floating reference ourselves already */
gst_object_unref (chain->filter);
if (prev) {
if (!gst_element_link_pads_full (prev, "src", chain->filter, "sink",
if (!gst_element_link_pads_full (prev, "src", chain->filter, NULL,
GST_PAD_LINK_CHECK_TEMPLATE_CAPS)) {
goto link_failed;
}