mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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:
parent
ad53caf059
commit
28f4e7db12
1 changed files with 2 additions and 2 deletions
|
@ -1866,7 +1866,7 @@ gen_video_chain (GstPlaySink * playsink, gboolean raw, gboolean async)
|
||||||
* floating reference ourselves already */
|
* floating reference ourselves already */
|
||||||
gst_object_unref (chain->filter);
|
gst_object_unref (chain->filter);
|
||||||
if (prev) {
|
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)) {
|
GST_PAD_LINK_CHECK_TEMPLATE_CAPS)) {
|
||||||
goto link_failed;
|
goto link_failed;
|
||||||
}
|
}
|
||||||
|
@ -2747,7 +2747,7 @@ gen_audio_chain (GstPlaySink * playsink, gboolean raw)
|
||||||
* floating reference ourselves already */
|
* floating reference ourselves already */
|
||||||
gst_object_unref (chain->filter);
|
gst_object_unref (chain->filter);
|
||||||
if (prev) {
|
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)) {
|
GST_PAD_LINK_CHECK_TEMPLATE_CAPS)) {
|
||||||
goto link_failed;
|
goto link_failed;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue