gstrtpmux: allow the ssrc-property to decide ssrc on outgoing buffers
authorHavard Graff <havard.graff@gmail.com>
Wed, 22 Jul 2015 07:47:22 +0000 (09:47 +0200)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Fri, 2 Oct 2015 21:39:06 +0000 (17:39 -0400)
commitd5e26ab9099e5a46eda7e9b59f01c1efe463344d
tree38880a1eccda4bc20f3dd78f9d01c45dbdf59646
parent41a82b9706e8923a10803bdebe816dc4dfce9e18
gstrtpmux: allow the ssrc-property to decide ssrc on outgoing buffers

By not doing this, the muxer is not effectively a rtpmuxer, rather a
funnel, since it should be a single stream that exists the muxer.

If not specified, take the first ssrc seen on a sinkpad, allowing upstream
to decide ssrc in "passthrough" with only one sinkpad.

Also, let downstream ssrc overrule internal configured one

We hence has the following order for determining the ssrc used by
rtpmux:

0. Suggestion from GstRTPCollision event
1. Downstream caps
2. ssrc-Property
3. (First) upstream caps containing ssrc
4. Randomly generated

https://bugzilla.gnome.org/show_bug.cgi?id=752694
gst/rtpmanager/gstrtpmux.c
gst/rtpmanager/gstrtpmux.h
tests/check/elements/rtpmux.c