зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1213726 - Remove AbstractMediaDecoder::HasInitializationData(). r=kinetik.
This commit is contained in:
Родитель
6702393c68
Коммит
9268cc5ba6
|
@ -122,10 +122,6 @@ public:
|
|||
// Called from HTMLMediaElement when owner document activity changes
|
||||
virtual void SetElementVisibility(bool aIsVisible) {}
|
||||
|
||||
// Called by some MediaDecoderReader to determine if we can rely
|
||||
// on the resource length to limit reads.
|
||||
virtual bool HasInitializationData() { return false; }
|
||||
|
||||
// Stack based class to assist in notifying the frame statistics of
|
||||
// parsed and decoded frames. Use inside video demux & decode functions
|
||||
// to ensure all parsed and decoded frames are reported on all return paths.
|
||||
|
|
|
@ -255,9 +255,7 @@ WebMReader::RetrieveWebMMetadata(MediaInfo* aInfo)
|
|||
io.seek = webm_seek;
|
||||
io.tell = webm_tell;
|
||||
io.userdata = &mResource;
|
||||
int64_t maxOffset = mDecoder->HasInitializationData() ?
|
||||
mBufferedState->GetInitEndOffset() : -1;
|
||||
int r = nestegg_init(&mContext, io, &webm_log, maxOffset);
|
||||
int r = nestegg_init(&mContext, io, &webm_log, -1);
|
||||
if (r == -1) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче