diff --git a/validate/gst/validate/gst-validate-pad-monitor.c b/validate/gst/validate/gst-validate-pad-monitor.c index 5abcc794f8..7118ea915a 100644 --- a/validate/gst/validate/gst-validate-pad-monitor.c +++ b/validate/gst/validate/gst-validate-pad-monitor.c @@ -477,7 +477,7 @@ gst_validate_pad_monitor_get_othercaps (GstValidatePadMonitor * monitor) /* TODO What would be the correct caps operation to merge the caps in * case one sink is internally linked to multiple srcs? */ - peercaps = gst_pad_get_current_caps (otherpad); + peercaps = gst_pad_peer_query_caps (otherpad, NULL); if (peercaps) caps = gst_caps_merge (caps, peercaps);