Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: webrtc/media/sctp/sctpdataengine.cc

Issue 2019423006: Adding more detail to MessageQueue::Dispatch logging. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/media/sctp/sctpdataengine.cc
diff --git a/webrtc/media/sctp/sctpdataengine.cc b/webrtc/media/sctp/sctpdataengine.cc
index b7462de879d82fb31132e5a4f580c9876cfc0291..6979b83dcd515e4bc2ae835ad60cc296c1414e48 100644
--- a/webrtc/media/sctp/sctpdataengine.cc
+++ b/webrtc/media/sctp/sctpdataengine.cc
@@ -193,7 +193,8 @@ static int OnSctpOutboundPacket(void* addr, void* data, size_t length,
// Note: We have to copy the data; the caller will delete it.
auto* msg = new OutboundPacketMessage(
new rtc::CopyOnWriteBuffer(reinterpret_cast<uint8_t*>(data), length));
- channel->worker_thread()->Post(channel, MSG_SCTPOUTBOUNDPACKET, msg);
+ channel->worker_thread()->Post(FROM_HERE, channel, MSG_SCTPOUTBOUNDPACKET,
+ msg);
return 0;
}
@@ -227,7 +228,8 @@ static int OnSctpInboundPacket(struct socket* sock, union sctp_sockstore addr,
packet->flags = flags;
// The ownership of |packet| transfers to |msg|.
InboundPacketMessage* msg = new InboundPacketMessage(packet);
- channel->worker_thread()->Post(channel, MSG_SCTPINBOUNDPACKET, msg);
+ channel->worker_thread()->Post(FROM_HERE, channel, MSG_SCTPINBOUNDPACKET,
+ msg);
}
free(data);
return 1;

Powered by Google App Engine
This is Rietveld 408576698