Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 46c0f98073a78dfd09627d347d3f34a6e9eda122
      
https://github.com/WebKit/WebKit/commit/46c0f98073a78dfd09627d347d3f34a6e9eda122
  Author: Philippe Normand <[email protected]>
  Date:   2026-01-08 (Thu, 08 Jan 2026)

  Changed paths:
    M Source/WebCore/Modules/mediastream/gstreamer/GStreamerMediaEndpoint.cpp

  Log Message:
  -----------
  [GStreamer][WebRTC] Avoid a couple memory allocations when GST_DEBUG is off
https://bugs.webkit.org/show_bug.cgi?id=304825

Reviewed by Xabier Rodriguez-Calvar.

Those involve large (SDP) strings allocations and g_inet_address calls that did 
show up in perf
profiles. So perform these allocations only if the corresponding GST_DEBUG 
level has been enabled.

* Source/WebCore/Modules/mediastream/gstreamer/GStreamerMediaEndpoint.cpp:
(WebCore::transceiverStatesFromWebRTCBin):
(WebCore::GStreamerMediaEndpoint::linkOutgoingSources):
(WebCore::GStreamerMediaEndpoint::setDescription):
(WebCore::GStreamerMediaEndpoint::processSDPMessage):

Canonical link: https://commits.webkit.org/305279@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to