diff options
| author | frosty <frostinator33@airmail.cc> | 2026-10-26 10:21:57 -0400 |
|---|---|---|
| committer | frosty <frostinator33@airmail.cc> | 2026-10-26 10:21:57 -0400 |
| commit | 74aecd8b0986d07b50b7ce310d64e645b8b54e38 (patch) | |
| tree | 560e6434f183eb54cd779936f3a4c9575146a066 /plugins/rtp/src/participant.vala | |
| parent | 3d7e90d401da02d430a87db0ec7e1db3a6f1a68f (diff) | |
| parent | 4436001bb361ad4f9e4e05819214ecf0ea77c063 (diff) | |
Merge 'upstream/master'
Diffstat (limited to 'plugins/rtp/src/participant.vala')
| -rw-r--r-- | plugins/rtp/src/participant.vala | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/plugins/rtp/src/participant.vala b/plugins/rtp/src/participant.vala deleted file mode 100644 index 1ca13191..00000000 --- a/plugins/rtp/src/participant.vala +++ /dev/null @@ -1,39 +0,0 @@ -using Gee; -using Xmpp; - -public class Dino.Plugins.Rtp.Participant { - public Jid full_jid { get; private set; } - - protected Gst.Pipeline pipe; - private Map<Stream, uint32> ssrcs = new HashMap<Stream, uint32>(); - - public Participant(Gst.Pipeline pipe, Jid full_jid) { - this.pipe = pipe; - this.full_jid = full_jid; - } - - public uint32 get_ssrc(Stream stream) { - if (ssrcs.has_key(stream)) { - return ssrcs[stream]; - } - return 0; - } - - public void set_ssrc(Stream stream, uint32 ssrc) { - if (ssrcs.has_key(stream)) { - warning("Learning ssrc %ul for %s in %s when it is already known as %ul", ssrc, full_jid.to_string(), stream.to_string(), ssrcs[stream]); - } else { - stream.on_destroy.connect(unset_ssrc); - } - ssrcs[stream] = ssrc; - } - - public void unset_ssrc(Stream stream) { - ssrcs.unset(stream); - stream.on_destroy.disconnect(unset_ssrc); - } - - public string to_string() { - return @"participant $full_jid"; - } -}
\ No newline at end of file |
