[webkit-changes] [WebKit/WebKit] 869bf0: [GStreamer] Fix crash on devices where video sink ...
Enrique Ocaña González
noreply at github.com
Mon Jun 12 05:56:36 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 869bf0a64f0f7cb1c606447e259a738ed908a187
https://github.com/WebKit/WebKit/commit/869bf0a64f0f7cb1c606447e259a738ed908a187
Author: Enrique Ocaña González <eocanha at igalia.com>
Date: 2023-06-12 (Mon, 12 Jun 2023)
Changed paths:
M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
Log Message:
-----------
[GStreamer] Fix crash on devices where video sink is auto-plugged
https://bugs.webkit.org/show_bug.cgi?id=254674
Reviewed by Xabier Rodriguez-Calvar.
Some (downstream) platforms don't have any specific videosink enforced and use autoplugging instead.
This means that createVideoSink() will return nullptr and the sink will be created automatically
(autoplugged) when the time comes. However, the lambda[1] that sets max-lateness at createVideoSink()
triggers an assert if the sink is null at that point.
Original author: Eugene Mutavchi <Ievgen_Mutavchi at comcast.com>
See: https://github.com/WebPlatformForEmbedded/WPEWebKit/pull/1059
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::createVideoSink): Removed assert and just return if m_videoSink is null.
Canonical link: https://commits.webkit.org/265066@main
More information about the webkit-changes
mailing list