pad: Fix previous commit

We want to get the caps query *result*
This commit is contained in:
Edward Hervey 2015-08-08 15:28:19 +02:00 committed by Edward Hervey
parent 5a7b7e66bd
commit 2ef06fd39d

View file

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