rtsp-stream: make use of blocked_running_time in query_position
authorMathieu Duponchelle <mathieu@centricular.com>
Thu, 8 Oct 2020 20:17:16 +0000 (22:17 +0200)
committerMathieu Duponchelle <mathieu@centricular.com>
Thu, 8 Oct 2020 20:28:04 +0000 (22:28 +0200)
commit6d319f8e4914909e43f737a13c4f3a464f406655
treedb0138a0b744b644f01f5732925d4f94563dfa46
parenta446ba4fb06a5d8ffb532eb9a4e86dbadcc5b7fc
rtsp-stream: make use of blocked_running_time in query_position

When blocking, the sink element will not have received a buffer
yet and the position query will fail. Instead, we make use of
the running time of the buffer we blocked on.

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