зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1325004
. Part 7 - remove Push(). r=kikuo
MozReview-Commit-ID: 7fNAGwKhKSN --HG-- extra : rebase_source : b4c1b541e9a60420f1dd3f07d364881d05059d82 extra : intermediate-source : 5ddd990ae771bedabd12a86c1fa86b79d42199c9 extra : source : f619a366739ccf00692dcfa0fa1bfa02ef3ae938
This commit is contained in:
Родитель
75c6cf0698
Коммит
21a9b72957
|
@ -2568,28 +2568,6 @@ MediaDecoderStateMachine::PushVideo(MediaData* aSample)
|
|||
VideoQueue().Push(aSample);
|
||||
}
|
||||
|
||||
void
|
||||
MediaDecoderStateMachine::Push(MediaData* aSample)
|
||||
{
|
||||
MOZ_ASSERT(OnTaskQueue());
|
||||
MOZ_ASSERT(aSample);
|
||||
|
||||
if (aSample->mType == MediaData::AUDIO_DATA) {
|
||||
// TODO: Send aSample to MSG and recalculate readystate before pushing,
|
||||
// otherwise AdvanceFrame may pop the sample before we have a chance
|
||||
// to reach playing.
|
||||
AudioQueue().Push(aSample);
|
||||
} else if (aSample->mType == MediaData::VIDEO_DATA) {
|
||||
// TODO: Send aSample to MSG and recalculate readystate before pushing,
|
||||
// otherwise AdvanceFrame may pop the sample before we have a chance
|
||||
// to reach playing.
|
||||
aSample->As<VideoData>()->mFrameID = ++mCurrentFrameID;
|
||||
VideoQueue().Push(aSample);
|
||||
}
|
||||
|
||||
DispatchDecodeTasksIfNeeded();
|
||||
}
|
||||
|
||||
void
|
||||
MediaDecoderStateMachine::OnAudioPopped(const RefPtr<MediaData>& aSample)
|
||||
{
|
||||
|
|
|
@ -338,7 +338,6 @@ protected:
|
|||
|
||||
// Inserts MediaData* samples into their respective MediaQueues.
|
||||
// aSample must not be null.
|
||||
void Push(MediaData* aSample);
|
||||
void PushAudio(MediaData* aSample);
|
||||
void PushVideo(MediaData* aSample);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче