Closed
Bug 1055899
Opened 10 years ago
Closed 10 years ago
Handle audio decoder resets from a SourceBuffer by switching to the new audio decoder
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: kinetik, Assigned: kinetik)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
13.44 KB,
patch
|
cajbir
:
review+
|
Details | Diff | Splinter Review |
Spinning off from bug 1041374. Addressed review comments from that bug and rearranged the code a bit.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8475627 -
Flags: review?(cajbir.bugzilla)
Comment 2•10 years ago
|
||
Comment on attachment 8475627 [details] [diff] [review] Handle audio decoder resets from a SourceBuffer by switching to the new audio decoder. v2 Review of attachment 8475627 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/media/mediasource/MediaSourceReader.cpp @@ +218,5 @@ > SubBufferDecoder* decoder = mDecoders[i]; > > + const MediaInfo& info = decoder->GetReader()->GetMediaInfo(); > + > + double decodeTarget = double(mTimeThreshold) / USECS_PER_S; We should be able to move this outside the loop I think.
Attachment #8475627 -
Flags: review?(cajbir.bugzilla) → review+
Comment 3•10 years ago
|
||
Comment on attachment 8475627 [details] [diff] [review] Handle audio decoder resets from a SourceBuffer by switching to the new audio decoder. v2 Review of attachment 8475627 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/media/mediasource/MediaSourceReader.cpp @@ +238,5 @@ > + if (info.HasAudio()) { > + didSwitch = SwitchAudioReader(mDecoders[i]->GetReader()); > + } > + if (info.HasVideo()) { > + didSwitch = SwitchVideoReader(mDecoders[i]->GetReader()); Should these be "didSwitch |=" so we don't lose information if a later decoder doesn't switch?
Assignee | ||
Comment 5•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/16cad9b4140c
Comment 6•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/16cad9b4140c
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•