Closed Bug 1126656 Opened 9 years ago Closed 9 years ago

MediaCodecReader: Refine the "INFO_FORMAT_CHANGED" and "INFO_OUTPUT_BUFFERS_CHANGED".

Categories

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

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bechen, Assigned: bechen)

Details

I guess something wrong relative to format change about "INFO_FORMAT_CHANGED" and "INFO_OUTPUT_BUFFERS_CHANGED".

For example:
If the INFO_FORMAT_CHANGED comes from mCodec->dequeueOutputBuffer in GetCodecOutputData(), then we call UpdateAudioInfo/UpdateVideoInfo. It might falls into an infinite loop because we call mCodec->dequeueOutputBuffer again and expect that we should receive a INFO_FORMAT_CHANGED, but the INFO_FORMAT_CHANGED had been received by previous mCodec->dequeueOutputBuffer in GetCodecOutputData().

I will try to find some testing file to verify the code path.
Component: Audio/Video → Audio/Video: Playback
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.