Bug 1219163. Part 1 - Remove unused functions from AbstractMediaDecoder. r=jya.

This commit is contained in:
JW Wang 2015-11-23 10:19:04 +08:00
parent a46063fd76
commit f19507f0e8
4 changed files with 0 additions and 16 deletions

View File

@ -111,10 +111,6 @@ public:
virtual void MetadataLoaded(nsAutoPtr<MediaInfo> aInfo, nsAutoPtr<MetadataTags> aTags, MediaDecoderEventVisibility aEventVisibility) = 0;
virtual void FirstFrameLoaded(nsAutoPtr<MediaInfo> aInfo, MediaDecoderEventVisibility aEventVisibility) = 0;
// May be called by the reader to notify this decoder that the metadata from
// the media file has been read. Call on the decode thread only.
virtual void OnReadMetadataCompleted() = 0;
// Returns the owner of this media decoder. The owner should only be used
// on the main thread.
virtual MediaDecoderOwner* GetOwner() = 0;

View File

@ -607,10 +607,6 @@ private:
// change. Call on the main thread only.
virtual void ChangeState(PlayState aState);
// May be called by the reader to notify this decoder that the metadata from
// the media file has been read. Call on the decode thread only.
void OnReadMetadataCompleted() override { }
// Called when the metadata from the media file has been loaded by the
// state machine. Call on the main thread only.
virtual void MetadataLoaded(nsAutoPtr<MediaInfo> aInfo,

View File

@ -96,12 +96,6 @@ BufferDecoder::FirstFrameLoaded(nsAutoPtr<MediaInfo> aInfo, MediaDecoderEventVis
// ignore
}
void
BufferDecoder::OnReadMetadataCompleted()
{
// ignore
}
MediaDecoderOwner*
BufferDecoder::GetOwner()
{

View File

@ -53,8 +53,6 @@ public:
virtual void FirstFrameLoaded(nsAutoPtr<MediaInfo> aInfo,
MediaDecoderEventVisibility aEventVisibility) final override;
virtual void OnReadMetadataCompleted() final override;
virtual MediaDecoderOwner* GetOwner() final override;
virtual void NotifyDataArrived() final override {};