Closed Bug 1222919 Opened 10 years ago Closed 10 years ago

Make GonkDecoderManager::ProcessFlush() virtual rather than Flush().

Categories

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

Unspecified
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed
b2g-v2.5 --- fixed

People

(Reporter: jhlin, Assigned: jhlin)

References

Details

Attachments

(1 file, 1 obsolete file)

Flush() is called by reader and runs on reader thread. To customize flush behavior subclasses should implement ProcessFlush(), which runs on decoder looper thread.
Attached patch Make ProcessFlush() virtual. (obsolete) — Splinter Review
Comment on attachment 8684795 [details] [diff] [review] Make ProcessFlush() virtual. GonkAudioDecoderManager and GonkVideoDecoderManager overrides Flush() without protecting their data members. Overriding ProcessFlush() instead seems better IMHO.
Attachment #8684795 - Flags: review?(jyavenard)
Attachment #8684795 - Flags: review?(jyavenard) → review+
Attachment #8684795 - Attachment is obsolete: true
Comment on attachment 8685245 [details] [diff] [review] Make ProcessFlush() virtual. r=jya Carry r+ from jya.
Attachment #8685245 - Flags: review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Comment on attachment 8685245 [details] [diff] [review] Make ProcessFlush() virtual. r=jya NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 1222919 User impact if declined: occasional video app crashes if seek continuously Testing completed: video app doesn't crash Risk to taking this patch (and alternatives if risky): low String or UUID changes made by this patch:
Attachment #8685245 - Flags: approval‑mozilla‑b2g44?
Comment on attachment 8685245 [details] [diff] [review] Make ProcessFlush() virtual. r=jya Approved for 2.5 uplift. Thanks
Attachment #8685245 - Flags: approval‑mozilla‑b2g44? → approval‑mozilla‑b2g44+
this has problems on uplift: warning: conflicts during merge. merging dom/media/platforms/gonk/GonkMediaDataDecoder.cpp incomplete! (edit conflicts, then use 'hg resolve --mark') merging dom/media/platforms/gonk/GonkMediaDataDecoder.h merging dom/media/platforms/gonk/GonkVideoDecoderManager.h abort: unresolved conflicts, can't continue (use hg resolve and hg graft --continue) could you take a look? thanks!
Flags: needinfo?(jolin)
(In reply to Carsten Book [:Tomcat] from comment #11) > this has problems on uplift: > > warning: conflicts during merge. > merging dom/media/platforms/gonk/GonkMediaDataDecoder.cpp incomplete! (edit > conflicts, then use 'hg resolve --mark') > merging dom/media/platforms/gonk/GonkMediaDataDecoder.h > merging dom/media/platforms/gonk/GonkVideoDecoderManager.h > abort: unresolved conflicts, can't continue > (use hg resolve and hg graft --continue) > > could you take a look? thanks! Sorry, looks like this patch depends on the one in bug 1216895. I'll mark that as approval‑mozilla‑b2g44.
Flags: needinfo?(jolin)
mahe ping for the uplift approval requests for 1216895
Flags: needinfo?(mpotharaju)
Marked this one and dependent bug for 2.5 uplift. Thanks
Flags: needinfo?(mpotharaju)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: