Bug 948005 - Release reasources in MediaOmxReader's destructor. r=doublec, a=1.3+
authorSotaro Ikeda <sikeda@mozilla.com>
Tue, 07 Jan 2014 09:44:02 -0500
changeset 174613 6233d1456824c7cec1a8df5eff8e3150377c8752
parent 174612 55197a1aa5af760a44d6d3be2d2778c4a572108c
child 174614 bcdc6180d7c446fee25f2b6180af4d0c93159ba8
push id3224
push userlsblakk@mozilla.com
push dateTue, 04 Feb 2014 01:06:49 +0000
treeherdermozilla-beta@60c04d0987f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdoublec, 1
bugs948005
milestone28.0a2
Bug 948005 - Release reasources in MediaOmxReader's destructor. r=doublec, a=1.3+
content/media/omx/MediaOmxReader.cpp
--- a/content/media/omx/MediaOmxReader.cpp
+++ b/content/media/omx/MediaOmxReader.cpp
@@ -31,21 +31,18 @@ MediaOmxReader::MediaOmxReader(AbstractM
   mVideoSeekTimeUs(-1),
   mAudioSeekTimeUs(-1),
   mSkipCount(0)
 {
 }
 
 MediaOmxReader::~MediaOmxReader()
 {
-  ResetDecode();
-  VideoFrameContainer* container = mDecoder->GetVideoFrameContainer();
-  if (container) {
-    container->ClearCurrentFrame();
-  }
+  ReleaseMediaResources();
+  ReleaseDecoder();
   mOmxDecoder.clear();
 }
 
 nsresult MediaOmxReader::Init(MediaDecoderReader* aCloneDonor)
 {
   return NS_OK;
 }