Skip to content

Commit

Permalink
Cherry-pick 261681@main (2e8371e). https://bugs.webkit.org/show_bug.c…
Browse files Browse the repository at this point in the history
…gi?id=253955

    [GStreamer][WebRTC] StatsCollector: Update GStreamer version checks
    https://bugs.webkit.org/show_bug.cgi?id=253955

    Reviewed by Xabier Rodriguez-Calvar.

    GStreamer 1.22 is out so no need to check 1.21 anymore.

    * Source/WebCore/Modules/mediastream/gstreamer/GStreamerStatsCollector.cpp:
    (WebCore::fillReportCallback):

    Canonical link: https://commits.webkit.org/261681@main
  • Loading branch information
philn authored and aperezdc committed Apr 12, 2023
1 parent bb3a2cb commit 4b8a3b3
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -403,14 +403,14 @@ static gboolean fillReportCallback(GQuark, const GValue* value, gpointer userDat
break;
case GST_WEBRTC_STATS_LOCAL_CANDIDATE:
case GST_WEBRTC_STATS_REMOTE_CANDIDATE:
if (webkitGstCheckVersion(1, 21, 0)) {
if (webkitGstCheckVersion(1, 22, 0)) {
RTCStatsReport::IceCandidateStats stats;
fillRTCCandidateStats(stats, statsType, structure);
report.set<IDLDOMString, IDLDictionary<RTCStatsReport::IceCandidateStats>>(stats.id, WTFMove(stats));
}
break;
case GST_WEBRTC_STATS_CANDIDATE_PAIR:
if (webkitGstCheckVersion(1, 21, 0)) {
if (webkitGstCheckVersion(1, 22, 0)) {
RTCStatsReport::IceCandidatePairStats stats;
fillRTCCandidatePairStats(stats, structure);
report.set<IDLDOMString, IDLDictionary<RTCStatsReport::IceCandidatePairStats>>(stats.id, WTFMove(stats));
Expand Down

0 comments on commit 4b8a3b3

Please sign in to comment.