From efb3b4172d9e543fc3b16ef6c49e3039b794304a Mon Sep 17 00:00:00 2001 From: Botond Ballo Date: Wed, 10 Dec 2014 13:48:56 -0500 Subject: [PATCH] Bug 1073081 - Fix -Woverloaded-virtual warnings in the MediaDecoder hierarchy. r=cpearce --HG-- extra : source : 9aba1a2b1b23b0640867501b1b92f96fb6d0b13a --- dom/media/omx/MediaCodecDecoder.cpp | 2 +- dom/media/omx/MediaCodecDecoder.h | 2 +- dom/media/omx/MediaOmxCommonDecoder.cpp | 2 +- dom/media/omx/MediaOmxCommonDecoder.h | 2 +- dom/media/omx/MediaOmxDecoder.cpp | 2 +- dom/media/omx/MediaOmxDecoder.h | 2 +- dom/media/omx/RtspMediaCodecDecoder.cpp | 2 +- dom/media/omx/RtspMediaCodecDecoder.h | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dom/media/omx/MediaCodecDecoder.cpp b/dom/media/omx/MediaCodecDecoder.cpp index 93c6ed08ca57..5625a6f9350d 100644 --- a/dom/media/omx/MediaCodecDecoder.cpp +++ b/dom/media/omx/MediaCodecDecoder.cpp @@ -24,7 +24,7 @@ MediaCodecDecoder::CreateReader() } MediaDecoderStateMachine* -MediaCodecDecoder::CreateStateMachine(MediaOmxCommonReader* aReader) +MediaCodecDecoder::CreateStateMachineFromReader(MediaOmxCommonReader* aReader) { return new MediaDecoderStateMachine(this, aReader); } diff --git a/dom/media/omx/MediaCodecDecoder.h b/dom/media/omx/MediaCodecDecoder.h index 95f659552973..2b53ff9df138 100644 --- a/dom/media/omx/MediaCodecDecoder.h +++ b/dom/media/omx/MediaCodecDecoder.h @@ -20,7 +20,7 @@ public: virtual MediaOmxCommonReader* CreateReader(); - virtual MediaDecoderStateMachine* CreateStateMachine(MediaOmxCommonReader* aReader); + virtual MediaDecoderStateMachine* CreateStateMachineFromReader(MediaOmxCommonReader* aReader); }; } // namespace mozilla diff --git a/dom/media/omx/MediaOmxCommonDecoder.cpp b/dom/media/omx/MediaOmxCommonDecoder.cpp index 4addef1f8981..c25035591f89 100644 --- a/dom/media/omx/MediaOmxCommonDecoder.cpp +++ b/dom/media/omx/MediaOmxCommonDecoder.cpp @@ -265,7 +265,7 @@ MediaOmxCommonDecoder::CreateStateMachine() if (mReader != nullptr) { mReader->SetAudioChannel(GetAudioChannel()); } - return CreateStateMachine(mReader); + return CreateStateMachineFromReader(mReader); } } // namespace mozilla diff --git a/dom/media/omx/MediaOmxCommonDecoder.h b/dom/media/omx/MediaOmxCommonDecoder.h index d1ec8a253419..637300aae24b 100644 --- a/dom/media/omx/MediaOmxCommonDecoder.h +++ b/dom/media/omx/MediaOmxCommonDecoder.h @@ -41,7 +41,7 @@ public: virtual MediaDecoderStateMachine* CreateStateMachine(); virtual MediaOmxCommonReader* CreateReader() = 0; - virtual MediaDecoderStateMachine* CreateStateMachine(MediaOmxCommonReader* aReader) = 0; + virtual MediaDecoderStateMachine* CreateStateMachineFromReader(MediaOmxCommonReader* aReader) = 0; protected: virtual ~MediaOmxCommonDecoder(); diff --git a/dom/media/omx/MediaOmxDecoder.cpp b/dom/media/omx/MediaOmxDecoder.cpp index e4ec6bf2740a..75e10045431e 100644 --- a/dom/media/omx/MediaOmxDecoder.cpp +++ b/dom/media/omx/MediaOmxDecoder.cpp @@ -25,7 +25,7 @@ MediaOmxDecoder::CreateReader() } MediaDecoderStateMachine* -MediaOmxDecoder::CreateStateMachine(MediaOmxCommonReader* aReader) +MediaOmxDecoder::CreateStateMachineFromReader(MediaOmxCommonReader* aReader) { return new MediaDecoderStateMachine(this, aReader); } diff --git a/dom/media/omx/MediaOmxDecoder.h b/dom/media/omx/MediaOmxDecoder.h index 95b6ea37ffaf..28c0698c6dd6 100644 --- a/dom/media/omx/MediaOmxDecoder.h +++ b/dom/media/omx/MediaOmxDecoder.h @@ -15,7 +15,7 @@ class MediaOmxDecoder : public MediaOmxCommonDecoder public: virtual MediaDecoder* Clone(); virtual MediaOmxCommonReader* CreateReader(); - virtual MediaDecoderStateMachine* CreateStateMachine(MediaOmxCommonReader* aReader); + virtual MediaDecoderStateMachine* CreateStateMachineFromReader(MediaOmxCommonReader* aReader); }; } // namespace mozilla diff --git a/dom/media/omx/RtspMediaCodecDecoder.cpp b/dom/media/omx/RtspMediaCodecDecoder.cpp index 83d5a4498ca1..b65dbc462481 100644 --- a/dom/media/omx/RtspMediaCodecDecoder.cpp +++ b/dom/media/omx/RtspMediaCodecDecoder.cpp @@ -25,7 +25,7 @@ RtspMediaCodecDecoder::CreateReader() } MediaDecoderStateMachine* -RtspMediaCodecDecoder::CreateStateMachine(MediaOmxCommonReader* aReader) +RtspMediaCodecDecoder::CreateStateMachineFromReader(MediaOmxCommonReader* aReader) { return new MediaDecoderStateMachine(this, aReader, mResource->IsRealTime()); diff --git a/dom/media/omx/RtspMediaCodecDecoder.h b/dom/media/omx/RtspMediaCodecDecoder.h index 99a250ce73ae..f89fa23e3058 100644 --- a/dom/media/omx/RtspMediaCodecDecoder.h +++ b/dom/media/omx/RtspMediaCodecDecoder.h @@ -18,7 +18,7 @@ public: virtual MediaOmxCommonReader* CreateReader() MOZ_OVERRIDE; - virtual MediaDecoderStateMachine* CreateStateMachine(MediaOmxCommonReader* aReader) MOZ_OVERRIDE; + virtual MediaDecoderStateMachine* CreateStateMachineFromReader(MediaOmxCommonReader* aReader) MOZ_OVERRIDE; virtual void ApplyStateToStateMachine(PlayState aState) MOZ_OVERRIDE; };