Open Bug 1751168 Opened 4 years ago Updated 4 years ago

Verify if a missing VideoDecoder is a good reason to IPC_FAIL

Categories

(Core :: Audio/Video: GMP, task, P3)

task

Tracking

()

People

(Reporter: jstutte, Unassigned)

References

Details

Follow up from D136364.

GMPVideoDecoderChild functions often check:

if (!mVideoDecoder) {
    return IPC_FAIL(this, "!mVideoDecoder");
}

although the rest of the functions is infallible. IIUC mVideoDecoder is nulled out explicitly in GMPVideoDecoderChild::RecvDecodingComplete, so returning IPC_FAIL if it is nullptr basically considers any further call to GMPVideoDecoderChild as being fatal.

There are also obsolete comments on most of those functions:

// Ignore any return code. It is OK for this to fail without killing the
// process.

which can be just removed.

Severity: -- → N/A
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.