Bug 1415582 - Mirror changes done to Encoder InitDone to decoder. r=bwc, a=gchang
authorRandell Jesup <rjesup@jesup.org>
Wed, 08 Nov 2017 11:00:24 -0500
changeset 356634 7eba7d14704aa63caf3d0ab3b7377d5375c1ca30
parent 356633 92d450811409b26df4e8d40020477621683cd57e
child 356635 457d023c167edff003e68e3d6c5ce77a9a3815e8
push id7448
push userryanvm@gmail.com
push dateTue, 19 Dec 2017 14:40:03 +0000
treeherdermozilla-esr52@0712b6cbbdc8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbwc, gchang
bugs1415582
milestone52.5.3
Bug 1415582 - Mirror changes done to Encoder InitDone to decoder. r=bwc, a=gchang
media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.h
--- a/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.h
+++ b/media/webrtc/signaling/src/media-conduit/WebrtcGmpVideoCodec.h
@@ -416,33 +416,33 @@ private:
                       GMPVideoHost* aHost,
                       std::string* aErrorOut);
   static void ReleaseGmp_g(RefPtr<WebrtcGmpVideoDecoder>& aDecoder);
   void Close_g();
 
   class InitDoneCallback : public GetGMPVideoDecoderCallback
   {
   public:
-    explicit InitDoneCallback(WebrtcGmpVideoDecoder* aDecoder,
+    explicit InitDoneCallback(const RefPtr<WebrtcGmpVideoDecoder>& aDecoder,
                               const RefPtr<GmpInitDoneRunnable>& aInitDone)
       : mDecoder(aDecoder),
         mInitDone(aInitDone)
     {
     }
 
     virtual void Done(GMPVideoDecoderProxy* aGMP, GMPVideoHost* aHost)
     {
       std::string errorOut;
       int32_t result = mDecoder->GmpInitDone(aGMP, aHost, &errorOut);
 
       mInitDone->Dispatch(result, errorOut);
     }
 
   private:
-    WebrtcGmpVideoDecoder* mDecoder;
+    RefPtr<WebrtcGmpVideoDecoder> mDecoder;
     RefPtr<GmpInitDoneRunnable> mInitDone;
   };
 
   virtual int32_t Decode_g(const webrtc::EncodedImage& aInputImage,
                            bool aMissingFrames,
                            const webrtc::RTPFragmentationHeader* aFragmentation,
                            const webrtc::CodecSpecificInfo* aCodecSpecificInfo,
                            int64_t aRenderTimeMs);