validate: Do not query pad caps to check if caps are properly fowarded

Query caps will actually get the caps from downstream and those caps
might be different in case there is a Filter in between. What we want is
to check that the caps set on the internally linked pads are correct.
This commit is contained in:
Thibault Saunier 2014-03-26 10:56:58 +01:00
parent 36f9ba8f52
commit ff4879c749

View file

@ -273,7 +273,7 @@ gst_validate_pad_monitor_get_othercaps (GstValidatePadMonitor * monitor)
/* TODO What would be the correct caps operation to merge the caps in /* TODO What would be the correct caps operation to merge the caps in
* case one sink is internally linked to multiple srcs? */ * case one sink is internally linked to multiple srcs? */
peercaps = gst_pad_peer_query_caps (otherpad, NULL); peercaps = gst_pad_get_current_caps (otherpad);
if (peercaps) if (peercaps)
caps = gst_caps_merge (caps, peercaps); caps = gst_caps_merge (caps, peercaps);