[webkit-changes] [WebKit/WebKit] b6f626: [GStreamer] UI process crash in MediaPlayerPrivate...

Philippe Normand noreply at github.com
Tue Jul 18 10:03:03 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b6f626b07c7244eb38d9d52889a5defadd6cfe86
      https://github.com/WebKit/WebKit/commit/b6f626b07c7244eb38d9d52889a5defadd6cfe86
  Author: Philippe Normand <philn at igalia.com>
  Date:   2023-07-18 (Tue, 18 Jul 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/gstreamer/AudioTrackPrivateGStreamer.cpp
    M Source/WebCore/platform/graphics/gstreamer/VideoTrackPrivateGStreamer.cpp

  Log Message:
  -----------
  [GStreamer] UI process crash in MediaPlayerPrivateGStreamer::codecForStreamId
https://bugs.webkit.org/show_bug.cgi?id=259280

Reviewed by Xabier Rodriguez-Calvar.

Check the player WeakPtr is still valid before calling methods on it.

* Source/WebCore/platform/graphics/gstreamer/AudioTrackPrivateGStreamer.cpp:
(WebCore::AudioTrackPrivateGStreamer::capsChanged):
* Source/WebCore/platform/graphics/gstreamer/VideoTrackPrivateGStreamer.cpp:
(WebCore::VideoTrackPrivateGStreamer::capsChanged):

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




More information about the webkit-changes mailing list