mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Bug 825477 - Ignore return value from async calls in MediaPipeline. r=jesup
This commit is contained in:
parent
59f4bde62f
commit
fa8c05f7fa
@ -496,17 +496,16 @@ nsresult MediaPipelineTransmit::TransportReady(TransportFlow *flow) {
|
||||
|
||||
nsresult MediaPipeline::PipelineTransport::SendRtpPacket(
|
||||
const void *data, int len) {
|
||||
nsresult ret;
|
||||
|
||||
nsAutoPtr<DataBuffer> buf(new DataBuffer(static_cast<const uint8_t *>(data),
|
||||
len));
|
||||
|
||||
RUN_ON_THREAD(sts_thread_,
|
||||
WrapRunnableRet(
|
||||
WrapRunnable(
|
||||
RefPtr<MediaPipeline::PipelineTransport>(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<DataBuffer> buf(new DataBuffer(static_cast<const uint8_t *>(data),
|
||||
len));
|
||||
|
||||
RUN_ON_THREAD(sts_thread_,
|
||||
WrapRunnableRet(
|
||||
WrapRunnable(
|
||||
RefPtr<MediaPipeline::PipelineTransport>(this),
|
||||
&MediaPipeline::PipelineTransport::SendRtcpPacket_s,
|
||||
buf, &ret),
|
||||
NS_DISPATCH_NORMAL);
|
||||
&MediaPipeline::PipelineTransport::SendRtcpPacket_s,
|
||||
buf),
|
||||
NS_DISPATCH_NORMAL);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user