Bug 825477 - Ignore return value from async calls in MediaPipeline. r=jesup

This commit is contained in:
EKR 2012-12-30 07:53:48 -08:00
Родитель 59f4bde62f
Коммит fa8c05f7fa
1 изменённых файлов: 8 добавлений и 10 удалений

Просмотреть файл

@ -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;
}