[Bug 776901] srtp: Port to libsrtp2

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Jan 12 09:27:22 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=776901

--- Comment #2 from Jan Alexander Steffens (heftig) <jan.steffens at gmail.com> ---
Created attachment 366705
  --> https://bugzilla.gnome.org/attachment.cgi?id=366705&action=edit
srtp: Support libsrtp2

For libsrtp 1, add defines that translate the new namespaced identifiers
to the old unnamespaced ones. Also move the code for setting and getting
a stream's ROC into two compat functions that match libsrtp2's API.

It seems that libsrtp2 properly supports changing the ROC without having
to touch the sequence numbers afterwards, given that srtp_set_stream_roc
sets a pending_roc field, so the entire roc_changed dance should not be
needed anymore. The compat functions for libsrtp 1 just contain our
preexisting hacks, however, so it's still needed there.

libsrtp2 has no means of discovering the streams in the session, so to
create the stats structure we need to iterate over our own set of SSRCs.
For this we also need to re-add the previously removed ssrcs_set to the
encoder.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list