[webkit-changes] [WebKit/WebKit] 7e9d65: [GStreamer] Unmute doesn't work
Philippe Normand
noreply at github.com
Tue Mar 14 09:51:25 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7e9d65f61a5365044bfb842b252678cc24ee02fa
https://github.com/WebKit/WebKit/commit/7e9d65f61a5365044bfb842b252678cc24ee02fa
Author: Philippe Normand <philn at igalia.com>
Date: 2023-03-14 (Tue, 14 Mar 2023)
Changed paths:
M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h
Log Message:
-----------
[GStreamer] Unmute doesn't work
https://bugs.webkit.org/show_bug.cgi?id=253769
Reviewed by Carlos Garcia Campos and Xabier Rodriguez-Calvar.
The player now maintains an internal variable for the audio sink mute state, in order to avoid
false-positive mute change notifications. Receiving a notify::mute signal from the pipeline doesn't
necessarily means the mute state has changed, for instance the PulseAudio sink emits that signal
unconditionally before starting up.
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::isMuted const):
(WebCore::MediaPlayerPrivateGStreamer::setMuted):
(WebCore::MediaPlayerPrivateGStreamer::notifyPlayerOfMute):
(WebCore::MediaPlayerPrivateGStreamer::handleMessage):
(WebCore::MediaPlayerPrivateGStreamer::setStreamVolumeElement):
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
Canonical link: https://commits.webkit.org/261635@main
More information about the webkit-changes
mailing list