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 cf0fa3d371
commit 772eb2c0c3

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()