summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2014-12-08 20:27:52 (GMT)
committerThiago Santos <thiagoss@osg.samsung.com>2014-12-08 20:28:47 (GMT)
commit7b4df44f619a5f62dd0a1e148881aa469398dc6c (patch)
treeed64241f15998294b082b19cfd4fc21e487877ac
parentaf2707d3a3397ee715a19b74de5ccfb29db098d8 (diff)
downloadgst-devtools-7b4df44f619a5f62dd0a1e148881aa469398dc6c.tar.gz
gst-devtools-7b4df44f619a5f62dd0a1e148881aa469398dc6c.tar.xz
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
-rw-r--r--validate/gst/validate/gst-validate-pad-monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/validate/gst/validate/gst-validate-pad-monitor.c b/validate/gst/validate/gst-validate-pad-monitor.c
index 5abcc79..7118ea9 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);