From fa8c05f7fa7ad0c24bc64a184524119ae148c395 Mon Sep 17 00:00:00 2001 From: EKR Date: Sun, 30 Dec 2012 07:53:48 -0800 Subject: [PATCH] Bug 825477 - Ignore return value from async calls in MediaPipeline. r=jesup --- .../src/mediapipeline/MediaPipeline.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp index 0efe968ac1ee..189f5827d9a6 100644 --- a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp +++ b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp @@ -496,17 +496,16 @@ nsresult MediaPipelineTransmit::TransportReady(TransportFlow *flow) { nsresult MediaPipeline::PipelineTransport::SendRtpPacket( const void *data, int len) { - nsresult ret; nsAutoPtr buf(new DataBuffer(static_cast(data), len)); RUN_ON_THREAD(sts_thread_, - WrapRunnableRet( + WrapRunnable( RefPtr(this), - &MediaPipeline::PipelineTransport::SendRtpPacket_s, - buf, &ret), - NS_DISPATCH_NORMAL); + &MediaPipeline::PipelineTransport::SendRtpPacket_s, + buf), + NS_DISPATCH_NORMAL); return NS_OK; } @@ -548,17 +547,16 @@ nsresult MediaPipeline::PipelineTransport::SendRtpPacket_s( nsresult MediaPipeline::PipelineTransport::SendRtcpPacket( const void *data, int len) { - nsresult ret; nsAutoPtr buf(new DataBuffer(static_cast(data), len)); RUN_ON_THREAD(sts_thread_, - WrapRunnableRet( + WrapRunnable( RefPtr(this), - &MediaPipeline::PipelineTransport::SendRtcpPacket_s, - buf, &ret), - NS_DISPATCH_NORMAL); + &MediaPipeline::PipelineTransport::SendRtcpPacket_s, + buf), + NS_DISPATCH_NORMAL); return NS_OK; }