mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 07:45:30 +00:00
Bug 1458505 - grapping 'self' in mozilla::MakeScopeExit instead of '&' when needed, in HTMLMediaElement, r=me CLOSED TREE
This commit is contained in:
parent
4eeed45b93
commit
cae9cf0b13
@ -4827,8 +4827,8 @@ nsresult HTMLMediaElement::InitializeDecoderForChannel(nsIChannel* aChannel,
|
||||
NS_ASSERTION(!mimeType.IsEmpty(), "We should have the Content-Type.");
|
||||
NS_ConvertUTF8toUTF16 mimeUTF16(mimeType);
|
||||
|
||||
HTMLMediaElement* self = this;
|
||||
auto reportCanPlay = [&](bool aCanPlay) {
|
||||
RefPtr<HTMLMediaElement> self = this;
|
||||
auto reportCanPlay = [&, self](bool aCanPlay) {
|
||||
diagnostics.StoreFormatDiagnostics(
|
||||
self->OwnerDoc(), mimeUTF16, aCanPlay, __func__);
|
||||
if (!aCanPlay) {
|
||||
|
Loading…
Reference in New Issue
Block a user