Closed Bug 1104411 Opened 10 years ago Closed 10 years ago

[FFOS] seek in OmxDecoder will not end If the length of first seeked frame is 0

Categories

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

ARM
Gonk (Firefox OS)
defect

Tracking

()

RESOLVED FIXED
mozilla37
blocking-b2g 2.0M+
Tracking Status
b2g-v2.0 --- unaffected
b2g-v2.0M --- fixed
b2g-v2.1 --- unaffected
b2g-v2.2 --- fixed

People

(Reporter: bwu, Assigned: bwu)

References

Details

Attachments

(2 files, 2 obsolete files)

Some codecs output a first frame with length = 0 right after seeking, in current OmxDecoder seek design [1], it will make seek not end in a while loop. [1]http://dxr.mozilla.org/mozilla-central/source/dom/media/omx/OmxDecoder.cpp?from=OmxDecoder.cpp#596
blocking-b2g: --- → 2.0M?
blocking-b2g: 2.0M? → 2.0M+
Continue reading frame if the length of frame is 0 when seeking.
Hi Wayne, Could you please help test the patch (attachment 8528283 [details] [diff] [review]) to see if it can work or not? Thanks a lot!
Flags: needinfo?(waychen)
I have tested it on my Flame. It can work well.
bwu, isn't this bug affect to b2gv2.0?
Flags: needinfo?(bwu)
The problem mentioned in comment 0 currently only happen on the platform in Bug 1054172 and cannot be seen in Flame 2.0. In the attached patch, I am trying to have a solution for all platforms with different codec behavior. Not sure if other platforms in the future will also hit this problem. We may need to check in to 2.0 as well besides 2.0m if there is no other concerns.
Flags: needinfo?(bwu)
Hi Blake, It works in woodduck.
Flags: needinfo?(waychen)
Thanks a lot! Wayne
Attachment #8528283 - Attachment is obsolete: true
Attachment #8528760 - Flags: review?(sotaro.ikeda.g)
Comment on attachment 8528760 [details] [diff] [review] Bug-1104411-Continue-to-read-next-frame-if-the-lengt.patch Looks good!
Attachment #8528760 - Flags: review?(sotaro.ikeda.g) → review+
1. Carry r+ from sotaro. 2. Rebase attachment 8528760 [details] [diff] [review] to Master branch.
Attachment #8529731 - Flags: review+
1. Carry r+ from sotaro. 2. Clear the commit message.
Attachment #8528760 - Attachment is obsolete: true
Attachment #8529739 - Flags: review+
Hi seinlin, Please help check in attachment 8529739 [details] [diff] [review] to 2.0M branch if no concerns. Thanks!
Flags: needinfo?(kli)
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Blocks: Woodduck_P2
Priority: -- → P1
No longer blocks: Woodduck_P2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: