Bug 761786 - fix media playback crash when using omx-plugin and reloading videos - r=edwin

This commit is contained in:
Chris Double 2012-06-07 15:29:08 +12:00
parent d90bbfc34b
commit d8fc457685

View File

@ -191,6 +191,14 @@ OmxDecoder::~OmxDecoder()
{
ReleaseVideoBuffer();
ReleaseAudioBuffer();
if (mVideoSource.get()) {
mVideoSource->stop();
}
if (mAudioSource.get()) {
mAudioSource->stop();
}
}
class AutoStopMediaSource {