rtpfunnel: forward correct segment when switching pad
authorMathieu Duponchelle <mathieu@centricular.com>
Wed, 31 Jul 2019 19:55:16 +0000 (21:55 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 8 Aug 2019 17:56:13 +0000 (18:56 +0100)
commit2cb9cd1428853eb8b0aaf3f2bd984a281b1dd6cd
treefb671e09a033f80033e3bd2273e9daf036937a5c
parent23d8c7746d950e83e20d074d8deaf820dc84ea0c
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