Index: remoting/protocol/protobuf_video_reader.cc |
diff --git a/remoting/protocol/protobuf_video_reader.cc b/remoting/protocol/protobuf_video_reader.cc |
index 31f4aaeecd322e66bf00c2da54cab05659e4aa30..02e06f8368b21cd07a4008acb3670f598a6e9a89 100644 |
--- a/remoting/protocol/protobuf_video_reader.cc |
+++ b/remoting/protocol/protobuf_video_reader.cc |
@@ -19,16 +19,12 @@ ProtobufVideoReader::~ProtobufVideoReader() { } |
void ProtobufVideoReader::Init(protocol::Session* session, |
VideoStub* video_stub) { |
- reader_.Init<VideoPacket>( |
+ reader_.Init( |
session->video_channel(), |
NewCallback(this, &ProtobufVideoReader::OnNewData)); |
video_stub_ = video_stub; |
} |
-void ProtobufVideoReader::Close() { |
- reader_.Close(); |
-} |
- |
void ProtobufVideoReader::OnNewData(VideoPacket* packet) { |
video_stub_->ProcessVideoPacket(packet, new DeleteTask<VideoPacket>(packet)); |
} |