Closed Bug 1146685 Opened 10 years ago Closed 10 years ago

Use MediaPromise to handle WAITING_FOR_RESOURCES

Categories

(Core :: Audio/Video, defect, P3)

x86
macOS
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: jya, Unassigned)

References

(Blocks 1 open bug)

Details

A decoder shouldn't be marked as available until it's been both initialized and ready for use (e.g. not waiting for resources). The cycle would be something like: ReadMetadataPromise -> InitDecoderPromise -> WaitingForResources Promise. We shouldn't wait for WAITING_FOR_RESOURCES before calling ReadMetaData(). ReadMetadata() will be called and until returned once everything is setup.
Priority: -- → P3
If we implement bug 1146086 and have MediaDataDecoder return a MediaPromise that will be resolved once the decoder is properly ready. There will be no need for WAITING_FOR_RESOURCES state any longer. The omd decoderreader will have to be converted to the new MediaDataDemuxer / MediaDataDecoder for this to be possible (bug 1157571)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.