Make use of helper function introduced in bug 275609 in GStreamerStatsCollector
Or we could go ahead and use it in more places as well :)
Pull request: https://github.com/WebKit/WebKit/pull/29974
Committed 280177@main (06463409ee8a): <https://commits.webkit.org/280177@main> Reviewed commits have been landed. Closing PR #29974 and removing active labels.
<rdar://problem/130157301>