Bug 804387. Part 7: Use a static_cast instead of dynamic check when processing ProcessedMediaStream message. r=jesup

--HG--
extra : rebase_source : 3eb9264b706e19ac19ebf2377a33871be4cbe981
This commit is contained in:
Robert O'Callahan 2013-02-04 23:04:26 +13:00
parent 3805f43d67
commit ee5a02020e

View File

@ -1796,7 +1796,7 @@ ProcessedMediaStream::SetAutofinish(bool aAutofinish)
: ControlMessage(aStream), mAutofinish(aAutofinish) {}
virtual void Run()
{
mStream->AsProcessedStream()->SetAutofinishImpl(mAutofinish);
static_cast<ProcessedMediaStream*>(mStream)->SetAutofinishImpl(mAutofinish);
}
bool mAutofinish;
};