Closed Bug 1114928 Opened 11 years ago Closed 11 years ago

[FFOS][MSE] GonkMediaDataDecoder Throws a false alarm

Categories

(Core :: Audio/Video, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37

People

(Reporter: bwu, Assigned: bwu)

References

Details

Attachments

(1 file, 1 obsolete file)

Play the link[1] on Youtube via dash and it just lasts 4 second and stops. Refreshing browser doesn't re-trigger anything. It looks like it hang or gets stuck. If I play [1] with MAC's nightly version, 37.0a1 (2014-12-22), it can play well. [1]https://www.youtube.com/watch?v=wmgzfn1VtQ4
Blocks: MSE-FxOS
Summary: [FFOS][MSE] Youtube just play 4 seconds and stop. → [FFOS][MSE] GonkMediaDataDecoder Throws a false alarm
Have an correct initial value for "rv" to avoid checking a garbage value when mDrainComplete is false.
Attachment #8545038 - Flags: review?(ajones)
Comment on attachment 8545038 [details] [diff] [review] Bug-1114928-Have-an-initial-value-for-Ouput-result.patch Review of attachment 8545038 [details] [diff] [review]: ----------------------------------------------------------------- You should configure hg (or git, or whatever) to give you 8 lines of context instead of the default 4. ::: dom/media/fmp4/gonk/GonkMediaDataDecoder.cpp @@ +89,4 @@ > GonkMediaDataDecoder::ProcessOutput() > { > nsRefPtr<MediaData> output; > + nsresult rv = NS_ERROR_ABORT; I don't object to it, but I don't see how it helps.
Attachment #8545038 - Flags: review?(ajones) → review+
(In reply to Anthony Jones (:kentuckyfriedtakahe, :k17e) from comment #3) > Comment on attachment 8545038 [details] [diff] [review] > Bug-1114928-Have-an-initial-value-for-Ouput-result.patch > > Review of attachment 8545038 [details] [diff] [review]: > ----------------------------------------------------------------- > > You should configure hg (or git, or whatever) to give you 8 lines of context > instead of the default 4. > > ::: dom/media/fmp4/gonk/GonkMediaDataDecoder.cpp > @@ +89,4 @@ > > GonkMediaDataDecoder::ProcessOutput() > > { > > nsRefPtr<MediaData> output; > > + nsresult rv = NS_ERROR_ABORT; > > I don't object to it, but I don't see how it helps. "rv" will be only assigned value @[1]. If the while loop is not entered, rv will carry a garbage value which will be checked incorrectly in the codes behind the while loop and throws a false alarm. [1]http://dxr.mozilla.org/mozilla-central/source/dom/media/fmp4/gonk/GonkMediaDataDecoder.cpp?from=GonkMediaDataDecoder.cpp&case=true#94
Carry r+ from ajones.
Attachment #8545038 - Attachment is obsolete: true
Attachment #8545183 - Flags: review+
https://treeherder.mozilla.org/#/jobs?repo=try&revision=fbebc7fe3e93 Building results on try server are good enough. No need to run test cases due to pref off.
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: