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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 } | 87 } |
88 line->push_back(ch); | 88 line->push_back(ch); |
89 } | 89 } |
90 if (!line->empty()) { // give back the line we've collected so far with | 90 if (!line->empty()) { // give back the line we've collected so far with |
91 result = SR_SUCCESS; // a success code. Otherwise return the last code | 91 result = SR_SUCCESS; // a success code. Otherwise return the last code |
92 } | 92 } |
93 return result; | 93 return result; |
94 } | 94 } |
95 | 95 |
96 void StreamInterface::PostEvent(Thread* t, int events, int err) { | 96 void StreamInterface::PostEvent(Thread* t, int events, int err) { |
97 t->Post(this, MSG_POST_EVENT, new StreamEventData(events, err)); | 97 t->Post(RTC_FROM_HERE, this, MSG_POST_EVENT, |
| 98 new StreamEventData(events, err)); |
98 } | 99 } |
99 | 100 |
100 void StreamInterface::PostEvent(int events, int err) { | 101 void StreamInterface::PostEvent(int events, int err) { |
101 PostEvent(Thread::Current(), events, err); | 102 PostEvent(Thread::Current(), events, err); |
102 } | 103 } |
103 | 104 |
104 const void* StreamInterface::GetReadData(size_t* data_len) { | 105 const void* StreamInterface::GetReadData(size_t* data_len) { |
105 return NULL; | 106 return NULL; |
106 } | 107 } |
107 | 108 |
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1118 | 1119 |
1119 if (data_len) { | 1120 if (data_len) { |
1120 *data_len = 0; | 1121 *data_len = 0; |
1121 } | 1122 } |
1122 return SR_SUCCESS; | 1123 return SR_SUCCESS; |
1123 } | 1124 } |
1124 | 1125 |
1125 /////////////////////////////////////////////////////////////////////////////// | 1126 /////////////////////////////////////////////////////////////////////////////// |
1126 | 1127 |
1127 } // namespace rtc | 1128 } // namespace rtc |
OLD | NEW |