mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-03 18:53:58 +00:00
validate: Fix going over ghostpads/proxypads
This commit is contained in:
parent
6b661f394f
commit
7be8ecd628
1 changed files with 5 additions and 5 deletions
|
@ -186,13 +186,13 @@ _get_peer_pad (GstPad * pad)
|
||||||
while (GST_IS_PROXY_PAD (peer)) {
|
while (GST_IS_PROXY_PAD (peer)) {
|
||||||
GstPad *next_pad;
|
GstPad *next_pad;
|
||||||
|
|
||||||
if (GST_IS_GHOST_PAD (peer)) {
|
if (GST_PAD_IS_SINK (peer)) {
|
||||||
next_pad = gst_pad_get_peer (peer);
|
if (GST_IS_GHOST_PAD (peer))
|
||||||
|
|
||||||
if (next_pad == pad)
|
|
||||||
next_pad = gst_ghost_pad_get_target (GST_GHOST_PAD (peer));
|
next_pad = gst_ghost_pad_get_target (GST_GHOST_PAD (peer));
|
||||||
|
else
|
||||||
|
next_pad = GST_PAD (gst_proxy_pad_get_internal (GST_PROXY_PAD (peer)));
|
||||||
} else {
|
} else {
|
||||||
next_pad = GST_PAD (gst_proxy_pad_get_internal (GST_PROXY_PAD (peer)));
|
next_pad = gst_pad_get_peer (peer);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!next_pad)
|
if (!next_pad)
|
||||||
|
|
Loading…
Reference in a new issue