зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1055907 - Delete output sent to MP4Reader while it's flushing, prevents leaks. r=kentuckyfriedtakahe
This commit is contained in:
Родитель
4576b4e87f
Коммит
909328d103
|
@ -596,6 +596,8 @@ MP4Reader::Output(TrackType aTrack, MediaData* aSample)
|
|||
// Don't accept output while we're flushing.
|
||||
MonitorAutoLock mon(data.mMonitor);
|
||||
if (data.mIsFlushing) {
|
||||
delete aSample;
|
||||
LOG("MP4Reader produced output while flushing, discarding.");
|
||||
mon.NotifyAll();
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче