rtpbin: Allow reusing the sender AUX bin
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 27 Feb 2019 20:49:13 +0000 (15:49 -0500)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Thu, 21 Mar 2019 21:10:43 +0000 (21:10 +0000)
commit2ff7519d73b8c0e53293700960205afc1774dea6
tree7e2b058ec038a6b0774198ee30b26f3dd74725fe
parent16e5b32bc129bf1a13207c47f91df2fcd02bc22b
rtpbin: Allow reusing the sender AUX bin

This is needed for the case you don't know in advance all the sessions
you will be using, but would like to place all the related AUX element
in the same GstBin. As per current implementation, each time an sender
AUX bin is requested and returned, RTPBin will walk the src pads and
create sessions for these pads.

In the current implementation, if a src pad already have a sessions, it
returns an error and stops. As a side effect, if an AUX bin is reused in
a following AUX bin request, it can only work if the pads are created on
the last request.

This change simply relax the restriction in order to keep walking, and
just ensure that all newly created pads have a sessions.
gst/rtpmanager/gstrtpbin.c