| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 if (error) | 168 if (error) |
| 169 *error = error_; | 169 *error = error_; |
| 170 return SR_ERROR; | 170 return SR_ERROR; |
| 171 } | 171 } |
| 172 | 172 |
| 173 void | 173 void |
| 174 TransformAdapter::Close() { | 174 TransformAdapter::Close() { |
| 175 if (!direction_read_ && (state_ == ST_PROCESSING)) { | 175 if (!direction_read_ && (state_ == ST_PROCESSING)) { |
| 176 state_ = ST_FLUSHING; | 176 state_ = ST_FLUSHING; |
| 177 do { | 177 do { |
| 178 Write(0, 0, NULL, NULL); | 178 Write(0, 0, nullptr, nullptr); |
| 179 } while (state_ == ST_FLUSHING); | 179 } while (state_ == ST_FLUSHING); |
| 180 } | 180 } |
| 181 state_ = ST_COMPLETE; | 181 state_ = ST_COMPLETE; |
| 182 StreamAdapterInterface::Close(); | 182 StreamAdapterInterface::Close(); |
| 183 } | 183 } |
| 184 | 184 |
| 185 bool TransformAdapter::GetAvailable(size_t* size) const { | 185 bool TransformAdapter::GetAvailable(size_t* size) const { |
| 186 return false; | 186 return false; |
| 187 } | 187 } |
| 188 | 188 |
| 189 bool TransformAdapter::ReserveSize(size_t size) { | 189 bool TransformAdapter::ReserveSize(size_t size) { |
| 190 return true; | 190 return true; |
| 191 } | 191 } |
| 192 | 192 |
| 193 bool TransformAdapter::Rewind() { | 193 bool TransformAdapter::Rewind() { |
| 194 return false; | 194 return false; |
| 195 } | 195 } |
| 196 | 196 |
| 197 } // namespace rtc | 197 } // namespace rtc |
| OLD | NEW |