Closed Bug 1104421 Opened 10 years ago Closed 10 years ago

Assert that MediaDecoderReader::Shutdown has been called in MediaDecoderReader's destructor

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: kinetik, Unassigned)

Details

It'd be easier to catch problems like bug 1104357 if MediaDecoderReader was able to assert in its destructor that Shutdown() had been called. An initial attempt at this patch required Shutdown() to always be called, but this revealed a huge amount of breakage on a try push. I think it's more reasonable to assert that work done in the constructor is undone in the destructor, and work done in Init() is undone in Shutdown(), i.e. it should only be necessary to call Shutdown() if Init() succeeded. Unfortunately, that currently requires modifying all existing reader subclasses.
One of the patches in bug 1104964 does this.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.