Bug 686137 - Make nsMediaDecoder::RequestFrameBufferLength virtual. r=kinetik
authorChristopher De Cairos <chris@chrisdecairos.ca>
Wed, 25 Jan 2012 13:38:23 +1300
changeset 86521 f684bc45535353b3648aaa5e7d33fb799a8dcaff
parent 86520 ab66c3d65c0403bc3814f8361ffe26dfe011370a
child 86522 ba99528f5f117303c1421eed48f5fbb49792cc88
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik
bugs686137
milestone12.0a1
Bug 686137 - Make nsMediaDecoder::RequestFrameBufferLength virtual. r=kinetik
content/media/nsMediaDecoder.h
--- a/content/media/nsMediaDecoder.h
+++ b/content/media/nsMediaDecoder.h
@@ -361,17 +361,17 @@ public:
   nsHTMLMediaElement* GetMediaElement();
 
   // Returns the current size of the framebuffer used in
   // MozAudioAvailable events.
   PRUint32 GetFrameBufferLength() { return mFrameBufferLength; };
 
   // Sets the length of the framebuffer used in MozAudioAvailable events.
   // The new size must be between 512 and 16384.
-  nsresult RequestFrameBufferLength(PRUint32 aLength);
+  virtual nsresult RequestFrameBufferLength(PRUint32 aLength);
 
   // Moves any existing channel loads into the background, so that they don't
   // block the load event. This is called when we stop delaying the load
   // event. Any new loads initiated (for example to seek) will also be in the
   // background. Implementations of this must call MoveLoadsToBackground() on
   // their nsMediaStream.
   virtual void MoveLoadsToBackground()=0;