mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1373589 - Remove MediaResourceCallback::NotifyDecodeError which has no callers at all. r=kaku
MozReview-Commit-ID: D2xqWHIiRBv --HG-- extra : rebase_source : cc933811af40af3bebdbb8f3f1ca030cc8c622ef
This commit is contained in:
parent
3e6f20f54d
commit
27d3284709
@ -186,18 +186,6 @@ MediaDecoder::ResourceCallback::NotifyNetworkError()
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
MediaDecoder::ResourceCallback::NotifyDecodeError()
|
||||
{
|
||||
RefPtr<ResourceCallback> self = this;
|
||||
nsCOMPtr<nsIRunnable> r = NS_NewRunnableFunction([=] () {
|
||||
if (self->mDecoder) {
|
||||
self->mDecoder->DecodeError(NS_ERROR_DOM_MEDIA_FATAL_ERR);
|
||||
}
|
||||
});
|
||||
mAbstractMainThread->Dispatch(r.forget());
|
||||
}
|
||||
|
||||
/* static */ void
|
||||
MediaDecoder::ResourceCallback::TimerCallback(nsITimer* aTimer, void* aClosure)
|
||||
{
|
||||
|
@ -111,7 +111,6 @@ public:
|
||||
MediaDecoderOwner* GetMediaOwner() const override;
|
||||
void SetInfinite(bool aInfinite) override;
|
||||
void NotifyNetworkError() override;
|
||||
void NotifyDecodeError() override;
|
||||
void NotifyDataArrived() override;
|
||||
void NotifyBytesDownloaded() override;
|
||||
void NotifyDataEnded(nsresult aStatus) override;
|
||||
|
@ -37,9 +37,6 @@ public:
|
||||
// Notify that a network error is encountered.
|
||||
virtual void NotifyNetworkError() {}
|
||||
|
||||
// Notify that decoding has failed.
|
||||
virtual void NotifyDecodeError() {}
|
||||
|
||||
// Notify that data arrives on the stream and is read into the cache.
|
||||
virtual void NotifyDataArrived() {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user