Bug 254674

Summary: [GStreamer] Fix crash on devices where video sink is auto-plugged
Product: WebKit Reporter: Enrique Ocaña <eocanha>
Component: MediaAssignee: Enrique Ocaña <eocanha>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Enrique Ocaña
Reported 2023-03-29 10:25:35 PDT
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. [1] https://github.com/WebKit/WebKit/blob/main/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp#L3940
Attachments
Enrique Ocaña
Comment 1 2023-03-29 10:49:27 PDT
Enrique Ocaña
Comment 2 2023-03-29 10:50:22 PDT
EWS
Comment 3 2023-06-12 05:56:27 PDT
Committed 265066@main (869bf0a64f0f): <https://commits.webkit.org/265066@main> Reviewed commits have been landed. Closing PR #12123 and removing active labels.
Radar WebKit Bug Importer
Comment 4 2023-06-12 05:57:16 PDT
Note You need to log in before you can comment on or make changes to this bug.