Index: remoting/protocol/video_frame_pump.cc |
diff --git a/remoting/protocol/video_frame_pump.cc b/remoting/protocol/video_frame_pump.cc |
index 8cb30e4bf82d706d0426784536ffd12254489e94..68324ecbdc8e01863ed2c093334af56c7065085d 100644 |
--- a/remoting/protocol/video_frame_pump.cc |
+++ b/remoting/protocol/video_frame_pump.cc |
@@ -238,8 +238,9 @@ void VideoFramePump::OnVideoPacketSent() { |
// Send next packet if any. |
if (!pending_packets_.empty()) { |
- std::unique_ptr<PacketWithTimestamps> next(pending_packets_.front()); |
- pending_packets_.weak_erase(pending_packets_.begin()); |
+ std::unique_ptr<PacketWithTimestamps> next = |
+ std::move(pending_packets_.front()); |
+ pending_packets_.erase(pending_packets_.begin()); |
SendPacket(std::move(next)); |
} |
} |