summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Nauwelaerts <mnauw@users.sourceforge.net>2016-12-30 17:55:18 +0100
committerSebastian Dröge <sebastian@centricular.com>2017-01-09 15:48:55 +0200
commitf11c0ba95212647461ac89c64398c10412e135b1 (patch)
tree8f4b6cd344b7b0e5f0b9fb83c3ea6d8a3b10934a
parent00b513b956bc1eae28a4fd588db2f8e45b977d20 (diff)
downloadgstreamer-plugins-base-f11c0ba95212647461ac89c64398c10412e135b1.tar.gz
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
-rw-r--r--gst/playback/gstplaysink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c
index eaac018e6..a857d9558 100644
--- a/gst/playback/gstplaysink.c
+++ b/gst/playback/gstplaysink.c
@@ -1840,7 +1840,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;
}
@@ -2721,7 +2721,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;
}