зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1189506. Remove unused MediaStreamGraph::GetBufferedTicks. r=karlt
--HG-- extra : commitid : LtZfMVKOr50 extra : rebase_source : 4eff93b6d89b135b04b46c987d468e6d6ec9dbd4
This commit is contained in:
Родитель
a80a6acc01
Коммит
9c2e5faea3
|
@ -2476,20 +2476,6 @@ SourceMediaStream::EndAllTrackAndFinish()
|
|||
// we will call NotifyEvent() to let GetUserMedia know
|
||||
}
|
||||
|
||||
StreamTime
|
||||
SourceMediaStream::GetBufferedTicks(TrackID aID)
|
||||
{
|
||||
StreamBuffer::Track* track = mBuffer.FindTrack(aID);
|
||||
if (track) {
|
||||
MediaSegment* segment = track->GetSegment();
|
||||
if (segment) {
|
||||
return segment->GetDuration() -
|
||||
GraphTimeToStreamTime(GraphImpl()->mStateComputedTime);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
SourceMediaStream::RegisterForAudioMixing()
|
||||
{
|
||||
|
|
|
@ -842,17 +842,6 @@ public:
|
|||
*/
|
||||
void EndAllTrackAndFinish();
|
||||
|
||||
/**
|
||||
* Note: Only call from Media Graph thread (eg NotifyPull)
|
||||
*
|
||||
* Returns amount of time (data) that is currently buffered in the track,
|
||||
* assuming playout via PlayAudio or via a TrackUnion - note that
|
||||
* NotifyQueuedTrackChanges() on a SourceMediaStream will occur without
|
||||
* any "extra" buffering, but NotifyQueued TrackChanges() on a TrackUnion
|
||||
* will be buffered.
|
||||
*/
|
||||
StreamTime GetBufferedTicks(TrackID aID);
|
||||
|
||||
void RegisterForAudioMixing();
|
||||
|
||||
// XXX need a Reset API
|
||||
|
|
Загрузка…
Ссылка в новой задаче