mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
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:
parent
af2707d3a3
commit
7b4df44f61
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue