Closed Bug 1087254 Opened 11 years ago Closed 7 years ago

[B2G] Music sometimes can't get duration on mp3 file

Categories

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

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: rlin, Unassigned)

Details

Attachments

(1 file)

STR: 1. play mp3 2. Unwind, check the duration, sometime it would show --
Attached patch patch v1Splinter Review
https://mxr.mozilla.org/mozilla-central/source/content/media/omx/MediaOmxReader.cpp#273 This line won't be a block function call, On ProcessCachedData() job runs slower as usual case, the mUseParserDuration may not be set if mMP3FrameParser.IsMP3() check is failed, then the duration won't be update on MediaOmxReader::NotifyDataArrived().
Assignee: nobody → rlin
Attachment #8510015 - Flags: feedback?(jwwang)
The size of picture in the test mp3 file is 96.7kb. And the ProcessCachedData() would return after process the first block (~32kb) So if main thread run slower and ReadMetadata(on decoder thread) reach the //if (duration >= 0)// Then mUseParserDuration won't be set..
Not if MP3FrameParser::GetDuration can't return a valid duration (>= 0) after reading 32KB. Can you attach the problematic MP3 file and check how many bytes it needs to get a valid duration?
Attachment #8510015 - Flags: feedback?(jwwang)
Enable media codec would make this issue disappear.
Assignee: globelinmoz → nobody
Component: Audio/Video → Audio/Video: Playback
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: