diff options
Diffstat (limited to 'remoting/protocol/protobuf_video_reader.cc')
-rw-r--r-- | remoting/protocol/protobuf_video_reader.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/remoting/protocol/protobuf_video_reader.cc b/remoting/protocol/protobuf_video_reader.cc index f777363..31f4aae 100644 --- a/remoting/protocol/protobuf_video_reader.cc +++ b/remoting/protocol/protobuf_video_reader.cc @@ -5,18 +5,23 @@ #include "remoting/protocol/protobuf_video_reader.h" #include "base/task.h" +#include "remoting/proto/video.pb.h" #include "remoting/protocol/session.h" namespace remoting { namespace protocol { -ProtobufVideoReader::ProtobufVideoReader() { } +ProtobufVideoReader::ProtobufVideoReader(VideoPacketFormat::Encoding encoding) + : encoding_(encoding) { +} + ProtobufVideoReader::~ProtobufVideoReader() { } void ProtobufVideoReader::Init(protocol::Session* session, VideoStub* video_stub) { - reader_.Init<VideoPacket>(session->video_channel(), - NewCallback(this, &ProtobufVideoReader::OnNewData)); + reader_.Init<VideoPacket>( + session->video_channel(), + NewCallback(this, &ProtobufVideoReader::OnNewData)); video_stub_ = video_stub; } |