From 86dbc72dd6030f7796ac602279fab6ad85eeca60 Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Thu, 30 Jun 2011 23:23:30 +0000 Subject: Close all writers before JingleSession is destroyed. BUG=None TEST=None Review URL: http://codereview.chromium.org/7218061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91225 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/protocol/video_writer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'remoting/protocol/video_writer.h') diff --git a/remoting/protocol/video_writer.h b/remoting/protocol/video_writer.h index b9216c0..be4c715 100644 --- a/remoting/protocol/video_writer.h +++ b/remoting/protocol/video_writer.h @@ -19,7 +19,6 @@ namespace protocol { class Session; class SessionConfig; -// TODO(sergeyu): VideoWriter should implement VideoStub interface. class VideoWriter : public VideoStub { public: virtual ~VideoWriter(); @@ -29,6 +28,10 @@ class VideoWriter : public VideoStub { // Initializes the writer. virtual void Init(Session* session) = 0; + // Stops writing. Must be called on the network thread before this + // object is destroyed. + virtual void Close() = 0; + protected: VideoWriter() { } -- cgit v1.1