Bug 813637 - Let the compiler convert between the types, so that we don't end up with incorrect pointer math; r=cpearce

This commit is contained in:
Ehsan Akhgari 2012-11-21 18:30:10 -05:00
parent e4d770fba5
commit db8483a95e

View File

@ -24,7 +24,7 @@ MediaPluginReader::MediaPluginReader(AbstractMediaDecoder *aDecoder) :
mAudioSeekTimeUs(-1),
mLastVideoFrame(NULL)
{
reinterpret_cast<MediaPluginDecoder *>(aDecoder)->GetContentType(mType);
static_cast<MediaPluginDecoder *>(aDecoder)->GetContentType(mType);
}
MediaPluginReader::~MediaPluginReader()