webrtc stats: Remove duplicate structure get

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1448>
This commit is contained in:
Olivier Crête 2021-12-13 16:57:06 -05:00
parent f35435f1f7
commit fc7e7f5ccc

View file

@ -739,7 +739,6 @@ _get_stats_from_transport_channel (GstWebRTCBin * webrtc,
stats = gst_value_get_structure (val);
/* skip foreign sources */
gst_structure_get (stats, "ssrc", G_TYPE_UINT, &stats_ssrc, NULL);
if (gst_structure_get_uint (stats, "ssrc", &stats_ssrc) &&
ssrc == stats_ssrc)
_get_stats_from_rtp_source_stats (webrtc, stream, stats, codec_id,