gst_structure_set_name (ps, "application/x-srtp");
}
+ if (filter) {
+ GstCaps *tmp;
+
+ tmp = gst_caps_intersect (ret, filter);
+ gst_caps_unref (ret);
+ ret = tmp;
+ }
+
gst_query_set_caps_result (query, ret);
return TRUE;
if (!(stream = validate_buffer (filter, buf, &ssrc, is_rtcp))) {
GST_OBJECT_UNLOCK (filter);
+ GST_WARNING_OBJECT (filter, "Invalid buffer, dropping");
goto drop_buffer;
}
goto drop_buffer;
default:
+ GST_WARNING_OBJECT (filter, "Other error");
goto drop_buffer;
}
}
/* Install properties */
g_object_class_install_property (gobject_class, PROP_MKEY,
- g_param_spec_boxed ("key", "Key", "Master key",
+ g_param_spec_boxed ("key", "Key", "Master key (of "
+ G_STRINGIFY (SRTP_MASTER_KEY_LEN) " bytes)",
GST_TYPE_BUFFER, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
GST_PARAM_MUTABLE_PLAYING));
g_object_class_install_property (gobject_class, PROP_RTP_CIPHER,