Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
REGRESSION(r294104): [GStreamer] getUserMedia broken
https://bugs.webkit.org/show_bug.cgi?id=240420 Patch by Philippe Normand <pnormand@igalia.com> on 2022-05-16 Reviewed by Xabier Rodriguez-Calvar. The converter handling logic was modified in order to fix getUserMedia negotiated with raw video and also getDisplayMedia which is always raw video and thus doesn't require decoding. This patch also introduces a small optimization, reconfiguration is now done once only, after setting size and framerate. Before this patch it was done twice, so the pipeline was a taking more time to produce the first frame. * platform/mediastream/gstreamer/GStreamerVideoCaptureSource.cpp: (WebCore::GStreamerVideoCaptureSource::~GStreamerVideoCaptureSource): (WebCore::GStreamerVideoCaptureSource::settingsDidChange): Trigger capturer reconfiguration after setting both size and framerate. (WebCore::GStreamerVideoCaptureSource::startProducingData): Ditto. * platform/mediastream/gstreamer/GStreamerVideoCapturer.cpp: (WebCore::GStreamerVideoCapturer::createConverter): Do not decode display capture streams, these are always raw anyway. (WebCore::GStreamerVideoCapturer::setSize): Delay reconfiguration. (WebCore::GStreamerVideoCapturer::setFrameRate): Ditto. (WebCore::GStreamerVideoCapturer::reconfigure): Keep track of compatible video format. This is needed to workaround an issue in pipewiresrc caps negotiation. (WebCore::GStreamerVideoCapturer::adjustVideoSrcMIMEType): Renamed to reconfigure(). * platform/mediastream/gstreamer/GStreamerVideoCapturer.h: Canonical link: https://commits.webkit.org/250587@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294229 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
d4e6307
commit 5e80996639ec4af8fe9a0828feda7f2b374f9106
Showing
4 changed files
with
92 additions
and
27 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