Bug 1109540 - Improve GStreamerReader duration handling. r=k17e, a=sledru
authorEdwin Flores <eflores@mozilla.com>
Mon, 22 Dec 2014 09:43:23 -0500
changeset 242595 52b319921de39783361913463ebd84f2cbbfbd18
parent 242594 1e3eeb02017caba8544c0b268198cd20af1ce24d
child 242596 65f93bd5494d8c38eeeefcb89377be6a12d61bfc
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersk17e, sledru
bugs1109540
milestone36.0a2
Bug 1109540 - Improve GStreamerReader duration handling. r=k17e, a=sledru
dom/media/gstreamer/GStreamerReader.cpp
--- a/dom/media/gstreamer/GStreamerReader.cpp
+++ b/dom/media/gstreamer/GStreamerReader.cpp
@@ -65,16 +65,17 @@ typedef enum {
   GST_PLAY_FLAG_SOFT_COLORBALANCE = (1 << 10)
 } PlayFlags;
 
 GStreamerReader::GStreamerReader(AbstractMediaDecoder* aDecoder)
   : MediaDecoderReader(aDecoder),
   mMP3FrameParser(aDecoder->GetResource()->GetLength()),
   mDataOffset(0),
   mUseParserDuration(false),
+  mLastParserDuration(-1),
 #if GST_VERSION_MAJOR >= 1
   mAllocator(nullptr),
   mBufferPool(nullptr),
 #endif
   mPlayBin(nullptr),
   mBus(nullptr),
   mSource(nullptr),
   mVideoSink(nullptr),