Commit 2ef06fd3 authored by Edward Hervey's avatar Edward Hervey 🤘 Committed by Edward Hervey

pad: Fix previous commit

We want to get the caps query *result*
parent 5a7b7e66
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment