forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GStreamer][WebRTC] Incoming video track handling improvements
https://bugs.webkit.org/show_bug.cgi?id=276419 Reviewed by Xabier Rodriguez-Calvar. The h265.html test now consistently fails, due to bug #269285. Before this patch it was consistently timing out, due to a caps negotiation issue triggered when the MediaStreamTrack was disabled. The framerate not being set on the black video frames triggered variable framerate code paths, messing up downstream elements. After fixing the framerate issue, another bug surfaced, the buffers coming from the RealtimeIncoming source had no video meta information, leading to glupload failing to handle frames and raising errors. By using fakevideosink instead of appsink in the WebRTC pipeline for incoming video tracks that are decoded the tee element will perform no allocation query shenanigans and the decoder will correctly attach video metas to buffers. * LayoutTests/platform/glib/TestExpectations: * Source/WebCore/platform/mediastream/gstreamer/GStreamerMediaStreamSource.cpp: * Source/WebCore/platform/mediastream/gstreamer/RealtimeIncomingSourceGStreamer.cpp: (WebCore::RealtimeIncomingSourceGStreamer::configureAppSink): (WebCore::RealtimeIncomingSourceGStreamer::configureFakeVideoSink): (WebCore::RealtimeIncomingSourceGStreamer::handleDownstreamEvent): (WebCore::RealtimeIncomingSourceGStreamer::registerClient): * Source/WebCore/platform/mediastream/gstreamer/RealtimeIncomingSourceGStreamer.h: Canonical link: https://commits.webkit.org/280855@main
- Loading branch information
Showing
4 changed files
with
130 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters