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)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: rlin, Unassigned)
Details
Attachments
(1 file)
1.24 KB,
patch
|
Details | Diff | Splinter Review |
STR:
1. play mp3
2. Unwind, check the duration, sometime it would show --
Reporter | ||
Comment 1•11 years ago
|
||
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)
Reporter | ||
Comment 2•11 years ago
|
||
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..
Comment 3•11 years ago
|
||
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?
Updated•11 years ago
|
Attachment #8510015 -
Flags: feedback?(jwwang)
Reporter | ||
Comment 4•11 years ago
|
||
Enable media codec would make this issue disappear.
Assignee: globelinmoz → nobody
Updated•10 years ago
|
Component: Audio/Video → Audio/Video: Playback
Updated•7 years ago
|
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.
Description
•