Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r228639 - [GStreamer] Crash in WebCore::MediaPlayerRequestInsta…
…llMissingPluginsCallback::complete https://bugs.webkit.org/show_bug.cgi?id=166733 Reviewed by Philippe Normand. There are a couple of issues to tackle here. First is handling getting more than one missing plugin installation request at the same time. For this we add the request to a Vector and handle them there. Second is that if the player is dead and we still get the result, bad things happen. For that we "weaked" the pointer capture by the lambda. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: (WebCore::MediaPlayerPrivateGStreamer::~MediaPlayerPrivateGStreamer): Handle Vector of callbacks. (WebCore::MediaPlayerPrivateGStreamer::handleMessage): Weak private player pointer and put the callback in the Vector. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h: Callback becomes Vector. * platform/graphics/gstreamer/MediaPlayerRequestInstallMissingPluginsCallback.h: (WebCore::MediaPlayerRequestInstallMissingPluginsCallback::create): (WebCore::MediaPlayerRequestInstallMissingPluginsCallback::complete): (WebCore::MediaPlayerRequestInstallMissingPluginsCallback::MediaPlayerRequestInstallMissingPluginsCallback): Callback function is refactored into a "using" type and added self as parameter to the function.
- Loading branch information
1 parent
a5a8a6a
commit 9abad32
Showing
4 changed files
with
56 additions
and
14 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