From be6d732fc5ae9a9287c36a96a5f458708fc528ba Mon Sep 17 00:00:00 2001 From: trav90 Date: Fri, 21 Oct 2016 03:51:02 -0500 Subject: [PATCH] Remove static_cast on TrackInfo objects --- dom/media/fmp4/PlatformDecoderModule.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dom/media/fmp4/PlatformDecoderModule.cpp b/dom/media/fmp4/PlatformDecoderModule.cpp index 4f57b068bf..3583e228d2 100644 --- a/dom/media/fmp4/PlatformDecoderModule.cpp +++ b/dom/media/fmp4/PlatformDecoderModule.cpp @@ -151,26 +151,26 @@ PlatformDecoderModule::CreateDecoder(const TrackInfo& aConfig, { nsRefPtr m; - if (aConfig.IsAudio()) { - m = CreateAudioDecoder(static_cast(aConfig), + if (aConfig.GetAsAudioInfo()) { + m = CreateAudioDecoder(*aConfig.GetAsAudioInfo(), aTaskQueue, aCallback); return m.forget(); } - if (!aConfig.IsVideo()) { + if (!aConfig.GetAsVideoInfo()) { return nullptr; } if (H264Converter::IsH264(aConfig)) { m = new H264Converter(this, - static_cast(aConfig), + *aConfig.GetAsVideoInfo(), aLayersBackend, aImageContainer, aTaskQueue, aCallback); } else { - m = CreateVideoDecoder(static_cast(aConfig), + m = CreateVideoDecoder(*aConfig.GetAsVideoInfo(), aLayersBackend, aImageContainer, aTaskQueue,