mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
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.
This commit is contained in:
parent
16e5b32bc1
commit
2ff7519d73
1 changed files with 3 additions and 2 deletions
|
@ -4174,8 +4174,9 @@ create_error:
|
|||
}
|
||||
existing_session:
|
||||
{
|
||||
g_warning ("rtpbin: session %u is already a sender", sessid);
|
||||
return FALSE;
|
||||
GST_DEBUG_OBJECT (rtpbin,
|
||||
"skipping src_%i setup, since it is already configured.", sessid);
|
||||
return TRUE;
|
||||
}
|
||||
pad_failed:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue