rtsp-stream: fix connection delay due to wrong assumption on last-sample
authorJulien Isorce <julien.isorce@gmail.com>
Thu, 22 Jun 2017 14:25:07 +0000 (07:25 -0700)
committerJulien Isorce <jisorce@oblong.com>
Thu, 29 Jun 2017 13:52:09 +0000 (14:52 +0100)
commitd72284bdf8700c40e6eaca5e060cbb850a59288e
tree33bc37cb45c78f079f3e715a0e7478ebb1b9cd1b
parentfe3131ae88131b63a1d115f7efcd095ee5b7fe69
rtsp-stream: fix connection delay due to wrong assumption on last-sample

Commit 852cc09f542af5cadd79ffd7fe79d6475cf57e14 assumed that
multiudpsink's last-sample always comes from the payloader. Which
is wrong if auxiliary streams are multiplexed in the same stream.

So check the buffer's ssrc against the caps'ssrc before to use its
seqnum. If not the same ssrc just use the payloader as done prior
the commit above or when there is no last-sample yet.

https://bugzilla.gnome.org/show_bug.cgi?id=784094
gst/rtsp-server/rtsp-stream.c