mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-07 17:09:07 +00:00
Remove static_cast on TrackInfo objects
This commit is contained in:
@@ -151,26 +151,26 @@ PlatformDecoderModule::CreateDecoder(const TrackInfo& aConfig,
|
||||
{
|
||||
nsRefPtr<MediaDataDecoder> m;
|
||||
|
||||
if (aConfig.IsAudio()) {
|
||||
m = CreateAudioDecoder(static_cast<const AudioInfo&>(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<const VideoInfo&>(aConfig),
|
||||
*aConfig.GetAsVideoInfo(),
|
||||
aLayersBackend,
|
||||
aImageContainer,
|
||||
aTaskQueue,
|
||||
aCallback);
|
||||
} else {
|
||||
m = CreateVideoDecoder(static_cast<const VideoInfo&>(aConfig),
|
||||
m = CreateVideoDecoder(*aConfig.GetAsVideoInfo(),
|
||||
aLayersBackend,
|
||||
aImageContainer,
|
||||
aTaskQueue,
|
||||
|
||||
Reference in New Issue
Block a user