rtpfunnel: forward correct segment when switching pad
authorMathieu Duponchelle <mathieu@centricular.com>
Wed, 31 Jul 2019 19:55:16 +0000 (21:55 +0200)
committerMathieu Duponchelle <mduponchelle1@gmail.com>
Tue, 6 Aug 2019 14:02:50 +0000 (14:02 +0000)
commite18d5d6ec6dd883e65a4a58fcf96d5144512c6ca
tree2be24e0fed4cfe46d1458a378abcc877e44432e1
parent86ec5c1031cab9e5fc51580d334c393a14ca43f4
rtpfunnel: forward correct segment when switching pad

Forwarding a single segment event from the pad that first gets
chained is incorrect: when that first event was sent by an element
such as x264enc, with its offset start, we end pushing out of segment
buffers for the other pad(s).

Instead, everytime the active pad changes, forward the appropriate
segment event.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/1028
gst/rtpmanager/gstrtpfunnel.c