rtponviftimestamp: add support for using reference timestamps
authorBranko Subasic <branko@axis.com>
Thu, 10 Feb 2022 07:01:02 +0000 (08:01 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 11 Mar 2022 08:39:50 +0000 (08:39 +0000)
commit2689277a6bbcafc8dede608f4c35d46c2f01cf7e
treea5e1d6148ef24848ee0ac452bba9823865fa96aa
parentbce779e66d9d48f07b2ec62046437bfd75340b37
rtponviftimestamp: add support for using reference timestamps

Make it posible to configure the element to obtain the timestamps from
reference timestamp meta data instead of using the ntp-offset property,
or estimating its own offset. Currently the only time format supported
is "timestamp/x-unix", i.e. UTC time expressed in the unix time epoch.

In addition the custom event GstNtpOffset has been renamed to
GstOnvifTimestamp, to reflect that it is not necessarily used to convey
the ntp-offset. As a consequence we had to modify a couple of files in
the rtsp-server as well.

Fixes #984

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1683>
subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json
subprojects/gst-plugins-bad/gst/onvif/gstrtponviftimestamp.c
subprojects/gst-plugins-bad/gst/onvif/gstrtponviftimestamp.h
subprojects/gst-plugins-bad/tests/check/elements/rtponviftimestamp.c
subprojects/gst-rtsp-server/examples/test-onvif-server.c
subprojects/gst-rtsp-server/tests/check/gst/onvif.c