gst_query_parse_accept_caps (query, &caps);
GST_OBJECT_LOCK (funnel);
- result = gst_caps_is_subset (caps, funnel->srccaps);
+ result = gst_caps_can_intersect (caps, funnel->srccaps);
if (!result) {
GST_ERROR_OBJECT (pad,
"caps: %" GST_PTR_FORMAT " were not compatible with: %"
#define TWCC_EXTMAP_STR "http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01"
+#define BOGUS_EXTMAP_STR "http://www.ietf.org/id/bogus"
+
GST_START_TEST (rtpfunnel_twcc_caps)
{
GstHarness *h, *h0, *h1;
gst_caps_unref (caps);
gst_caps_unref (expected_caps);
- /* now try and set a different extmap (4) on the other sinkpad,
- and verify this does not work */
+ /* now try and set a different extmap for the same id on the other
+ * sinkpad, and verify this does not work */
gst_harness_set_src_caps_str (h1, "application/x-rtp, "
- "ssrc=(uint)456, extmap-4=" TWCC_EXTMAP_STR "");
+ "ssrc=(uint)456, extmap-5=" BOGUS_EXTMAP_STR "");
caps = gst_pad_get_current_caps (GST_PAD_PEER (h1->srcpad));
fail_unless (caps == NULL);