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

Unified Diff: remoting/protocol/protobuf_video_writer.cc

Issue 7218061: Close all writers before JingleSession is destroyed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 9 years, 6 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/protocol/protobuf_video_writer.h ('k') | remoting/protocol/rtcp_writer.h » ('j') | 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 025445da5e920e224a32490478e47b8ca759b6fa..a03a4e696008e6697b3fc79ef6272421eb42b6f0 100644
--- a/remoting/protocol/protobuf_video_writer.cc
+++ b/remoting/protocol/protobuf_video_writer.cc
@@ -23,6 +23,10 @@ void ProtobufVideoWriter::Init(protocol::Session* session) {
buffered_writer_->Init(session->video_channel(), NULL);
}
+void ProtobufVideoWriter::Close() {
+ buffered_writer_->Close();
+}
+
void ProtobufVideoWriter::ProcessVideoPacket(const VideoPacket* packet,
Task* done) {
buffered_writer_->Write(SerializeAndFrameMessage(*packet), done);
« no previous file with comments | « remoting/protocol/protobuf_video_writer.h ('k') | remoting/protocol/rtcp_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698