diff options
author | Edward Hervey <edward@centricular.com> | 2015-08-08 15:28:19 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2015-08-08 15:29:30 +0200 |
commit | 2ef06fd39d5262041ba129df832bce59e50dce94 (patch) | |
tree | 171ccf24fe2ddecc660b4fdcbf3ccfb4ac83302a | |
parent | 5a7b7e66bdc0a5d31f3821cab18348685934671d (diff) |
pad: Fix previous commit
We want to get the caps query *result*
-rw-r--r-- | gst/gstpad.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/gstpad.c b/gst/gstpad.c index 240277811..89eec99f4 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -2662,9 +2662,12 @@ gst_pad_get_allowed_caps (GstPad * pad) /* Query peer caps */ query = gst_query_new_caps (mycaps); gst_pad_peer_query (pad, query); - gst_query_parse_caps (query, &caps); + gst_query_parse_caps_result (query, &caps); + gst_caps_ref (caps); gst_query_unref (query); + gst_caps_unref (mycaps); + GST_CAT_DEBUG_OBJECT (GST_CAT_CAPS, pad, "allowed caps %" GST_PTR_FORMAT, caps); |