Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(616)

Unified Diff: remoting/protocol/protobuf_video_writer.cc

Issue 23477059: Simplify VideoEncoder interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/proto/video.proto ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/protobuf_video_writer.cc
diff --git a/remoting/protocol/protobuf_video_writer.cc b/remoting/protocol/protobuf_video_writer.cc
index 08e937b571ad329f834175a3e752b146f3beec89..7fd57c7bca42ca27564f930110749dfbfe12c763 100644
--- a/remoting/protocol/protobuf_video_writer.cc
+++ b/remoting/protocol/protobuf_video_writer.cc
@@ -63,6 +63,11 @@ bool ProtobufVideoWriter::is_connected() {
void ProtobufVideoWriter::ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
const base::Closure& done) {
+ // Older clients may expect deprecated flags field. Always set it to 7.
+ //
+ // TODO(sergeyu): Remove this field after M31 is released.
+ packet->set_deprecated_flags(7);
+
buffered_writer_.Write(SerializeAndFrameMessage(*packet), done);
}
« no previous file with comments | « remoting/proto/video.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698