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_ASSERTION(!mimeType.IsEmpty(), "We should have the Content-Type.");
|
||||||
NS_ConvertUTF8toUTF16 mimeUTF16(mimeType);
|
NS_ConvertUTF8toUTF16 mimeUTF16(mimeType);
|
||||||
|
|
||||||
HTMLMediaElement* self = this;
|
RefPtr<HTMLMediaElement> self = this;
|
||||||
auto reportCanPlay = [&](bool aCanPlay) {
|
auto reportCanPlay = [&, self](bool aCanPlay) {
|
||||||
diagnostics.StoreFormatDiagnostics(
|
diagnostics.StoreFormatDiagnostics(
|
||||||
self->OwnerDoc(), mimeUTF16, aCanPlay, __func__);
|
self->OwnerDoc(), mimeUTF16, aCanPlay, __func__);
|
||||||
if (!aCanPlay) {
|
if (!aCanPlay) {
|
||||||
|
Loading…
Reference in New Issue
Block a user