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
[GStreamer] Fill in client-name property on audio sinks
https://bugs.webkit.org/show_bug.cgi?id=233826 Patch by Philippe Normand <pnormand@igalia.com> on 2021-12-08 Reviewed by Xabier Rodriguez-Calvar. The audio sink client-name property is now set on sinks that support this property, such as pulsesink and pipewiresink. This is picked-up by GNOME settings and the corresponding audio streams now appear as owned by the WebKit application (MiniBrowser, ephy, etc) instead of "WebKitWebProcess". When the audio mixer is enabled, no media.role property is set, because the mixer can accept music and/or video roles simultaneously, so it doesn't make sense in this context. * platform/audio/gstreamer/AudioDestinationGStreamer.cpp: (WebCore::AudioDestinationGStreamer::AudioDestinationGStreamer): Drive-by refactoring, using a lambda instead of a static callback function. (WebCore::autoAudioSinkChildAddedCallback): Deleted. * platform/graphics/gstreamer/GStreamerAudioMixer.cpp: (WebCore::GStreamerAudioMixer::GStreamerAudioMixer): * platform/graphics/gstreamer/GStreamerCommon.cpp: (WebCore::createAutoAudioSink): (WebCore::createPlatformAudioSink): * platform/graphics/gstreamer/GStreamerCommon.h: * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: (WebCore::MediaPlayerPrivateGStreamer::~MediaPlayerPrivateGStreamer): (WebCore::MediaPlayerPrivateGStreamer::createAudioSink): (WebCore::MediaPlayerPrivateGStreamer::setAudioStreamPropertiesCallback): Deleted. (WebCore::MediaPlayerPrivateGStreamer::setAudioStreamProperties): Deleted. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h: Canonical link: https://commits.webkit.org/244982@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@286676 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
0d86c17
commit abdbc9bb85c56aaa914a59d6244ff1721b3e25ab
Showing
7 changed files
with
65 additions
and
40 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
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