Skip to content

sip: media-pipeline: Fix socket reuse

Evangelos Ribeiro Tzaras requested to merge devrtz/calls:fix-socket-reuse into master

We were using two distinct pipelines, one for receiving and one for sending. The receive pipeline was set to the playing state to allocate the sockets which we would reuse for the sending direction for our NAT traversal scheme.

The rework to a single pipeline broke reusing sockets subtly.

This happened because the state of the GstUDPSrc could be reset leading to newly allocated sockets once the pipeline is set to play.

This is now fixed by locking the state of the GstUDPSrc in the ready state during socket reuse setup.

Fixes aa446f82

Merge request reports