[webkit-changes] [WebKit/WebKit] 3a8aaf: [GStreamer][MediaStream] Reduce memory allocations...

Philippe Normand noreply at github.com
Wed Dec 11 01:24:00 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3a8aaf9dc79df5d62f4f25e7948d35aa0e85126b
      https://github.com/WebKit/WebKit/commit/3a8aaf9dc79df5d62f4f25e7948d35aa0e85126b
  Author: Philippe Normand <philn at igalia.com>
  Date:   2024-12-11 (Wed, 11 Dec 2024)

  Changed paths:
    M Source/WebCore/Modules/webaudio/MediaStreamAudioSource.cpp
    M Source/WebCore/Modules/webaudio/MediaStreamAudioSource.h
    M Source/WebCore/Modules/webaudio/MediaStreamAudioSourceGStreamer.cpp

  Log Message:
  -----------
  [GStreamer][MediaStream] Reduce memory allocations in MediaStreamAudioSource
https://bugs.webkit.org/show_bug.cgi?id=284364

Reviewed by Xabier Rodriguez-Calvar.

Keep track of the GstAudioInfo and corresponding caps instead of allocating them at each iteration.

* Source/WebCore/Modules/webaudio/MediaStreamAudioSource.h:
* Source/WebCore/Modules/webaudio/MediaStreamAudioSourceGStreamer.cpp:
(WebCore::MediaStreamAudioSource::consumeAudio):

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



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


More information about the webkit-changes mailing list