diff options
Diffstat (limited to 'remoting/protocol/protobuf_video_writer.cc')
-rw-r--r-- | remoting/protocol/protobuf_video_writer.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/remoting/protocol/protobuf_video_writer.cc b/remoting/protocol/protobuf_video_writer.cc index 73a9b0d..025445d 100644 --- a/remoting/protocol/protobuf_video_writer.cc +++ b/remoting/protocol/protobuf_video_writer.cc @@ -25,9 +25,7 @@ void ProtobufVideoWriter::Init(protocol::Session* session) { void ProtobufVideoWriter::ProcessVideoPacket(const VideoPacket* packet, Task* done) { - buffered_writer_->Write(SerializeAndFrameMessage(*packet)); - done->Run(); - delete done; + buffered_writer_->Write(SerializeAndFrameMessage(*packet), done); } int ProtobufVideoWriter::GetPendingPackets() { |