rtsp-stream: collect rtp info when blocking
authorMathieu Duponchelle <mathieu@centricular.com>
Mon, 5 Oct 2020 22:04:17 +0000 (00:04 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Thu, 8 Oct 2020 20:28:04 +0000 (22:28 +0200)
commita446ba4fb06a5d8ffb532eb9a4e86dbadcc5b7fc
tree1663032c7ec5d6a1f64771fa5fdda68b86637900
parent6a1e121a54898ce22f418a1bbaf02090ad6e6199
rtsp-stream: collect rtp info when blocking

We don't unblock the stream anymore before replying to the
play request (883ddc72bb5bc57c95a9e167814d1ac53fe1b443),
so the sinks don't have a last-sample after potentially flush
seeking. seek_trickmode waits for preroll however, which means
the stream will block and wait for a first buffer. Subsequent
calls to get_rtpinfo() can thus make use of the information.

See https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/issues/115

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/160>
gst/rtsp-server/rtsp-stream.c