Summary: | fsrtpconference feeds SRTP to transmitter even when encryption is disabled | ||
---|---|---|---|
Product: | Farstream | Reporter: | David Woodhouse <dwmw2> |
Component: | RTP Plugin | Assignee: | Olivier CrĂȘte <olivier.crete> |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
David Woodhouse
2018-02-21 14:56:15 UTC
This appears to make it work, although I haven't actually tested that connections which *do* use SRTP are still working: --- a/gst/fsrtpconference/fs-rtp-session.c +++ b/gst/fsrtpconference/fs-rtp-session.c @@ -1167,7 +1167,8 @@ _rtpbin_request_encoder (GstElement *rtpbin, guint session_id, { FsRtpSession *self = FS_RTP_SESSION (user_data); - if (self->id == session_id && self->priv->srtpenc) { + if (self->id == session_id && self->priv->srtpenc && + self->priv->encryption_parameters) { return gst_object_ref (self->priv->srtpenc); } else { return NULL; @@ -1180,7 +1181,8 @@ _rtpbin_request_decoder (GstElement *rtpbin, guint session_id, { FsRtpSession *self = FS_RTP_SESSION (user_data); - if (self->id == session_id && self->priv->srtpdec) + if (self->id == session_id && self->priv->srtpdec && + self->priv->encryption_parameters) return gst_object_ref (self->priv->srtpdec); else return NULL; Alternative, if srtpenc/srtpdec should be using application/x-rtp caps when encryption is disabled, then the answer would be more like https://bugzilla.gnome.org/show_bug.cgi?id=793704 -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/farstream/farstream/issues/9. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.