mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +00:00
pad: Fix previous commit
We want to get the caps query *result*
This commit is contained in:
parent
5a7b7e66bd
commit
2ef06fd39d
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue