Index: remoting/protocol/video_writer.cc |
diff --git a/remoting/protocol/video_writer.cc b/remoting/protocol/video_writer.cc |
index 99da94771a8dc836bad8ce973bdc7ce3d23c2f7a..04f03f3fd1c907650b69d1e3e50dbb5de03860f1 100644 |
--- a/remoting/protocol/video_writer.cc |
+++ b/remoting/protocol/video_writer.cc |
@@ -13,12 +13,12 @@ namespace protocol { |
VideoWriter::~VideoWriter() { } |
// static |
-VideoWriter* VideoWriter::Create(const SessionConfig& config) { |
+scoped_ptr<VideoWriter> VideoWriter::Create(const SessionConfig& config) { |
const ChannelConfig& video_config = config.video_config(); |
if (video_config.transport == ChannelConfig::TRANSPORT_STREAM) { |
- return new ProtobufVideoWriter(); |
+ return scoped_ptr<VideoWriter>(new ProtobufVideoWriter()); |
} |
- return NULL; |
+ return scoped_ptr<VideoWriter>(NULL); |
} |
} // namespace protocol |