rtmp2: Add gst_rtmp_connection_get_stats and _get_null_stats
authorJan Alexander Steffens (heftig) <jsteffens@make.tv>
Fri, 14 Feb 2020 13:53:46 +0000 (14:53 +0100)
committerJan Alexander Steffens (heftig) <jsteffens@make.tv>
Fri, 21 Feb 2020 18:26:35 +0000 (19:26 +0100)
commitf1a9a3146a1d71e9229e19fdbb56ea3c9a441ce7
treebd589e43e7977b5318fce381eea81f9e67294b32
parent5d720eb59e68b0c70a662fe1686c850763abe859
rtmp2: Add gst_rtmp_connection_get_stats and _get_null_stats

The former uses a thread-safe way of getting statistics from the
connection without having to protect the fields with a lock.

The latter produces a zeroed statistics structure for use when no
connection exists.
gst/rtmp2/rtmp/rtmpconnection.c
gst/rtmp2/rtmp/rtmpconnection.h