From 7b4df44f619a5f62dd0a1e148881aa469398dc6c Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 8 Dec 2014 17:27:52 -0300 Subject: [PATCH] pad-monitor: get correct caps to check for proxied fields in caps queries Elements should proxy the peer element's caps fields and not what they have currently set on their pads when replying to a caps query --- validate/gst/validate/gst-validate-pad-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate/gst/validate/gst-validate-pad-monitor.c b/validate/gst/validate/gst-validate-pad-monitor.c index 5abcc794f81..7118ea915a3 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);