summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/video_reader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/protocol/video_reader.cc')
-rw-r--r--remoting/protocol/video_reader.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/remoting/protocol/video_reader.cc b/remoting/protocol/video_reader.cc
index 832eb04..2c1585a 100644
--- a/remoting/protocol/video_reader.cc
+++ b/remoting/protocol/video_reader.cc
@@ -19,7 +19,10 @@ VideoReader* VideoReader::Create(const SessionConfig* config) {
if (video_config.transport == ChannelConfig::TRANSPORT_SRTP) {
return new RtpVideoReader();
} else if (video_config.transport == ChannelConfig::TRANSPORT_STREAM) {
- return new ProtobufVideoReader();
+ if (video_config.codec == ChannelConfig::CODEC_ZIP)
+ return new ProtobufVideoReader(VideoPacketFormat::ENCODING_ZLIB);
+ else if (video_config.codec == ChannelConfig::CODEC_VERBATIM)
+ return new ProtobufVideoReader(VideoPacketFormat::ENCODING_VERBATIM);
}
return NULL;
}