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
This commit is contained in:
Thiago Santos 2014-12-08 17:27:52 -03:00
parent af2707d3a3
commit 7b4df44f61

View file

@ -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);