| 918 | } |
| 919 | |
| 920 | bool RtmpContext::FindMessageStream( |
| 921 | uint32_t stream_id, butil::intrusive_ptr<RtmpStreamBase>* stream) { |
| 922 | BAIDU_SCOPED_LOCK(_stream_mutex); |
| 923 | MessageStreamInfo* info = _mstream_map.seek(stream_id); |
| 924 | if (info == NULL || info->stream == NULL) { |
| 925 | return false; |
| 926 | } |
| 927 | *stream = info->stream; |
| 928 | return true; |
| 929 | } |
| 930 | |
| 931 | bool RtmpContext::AddClientStream(RtmpStreamBase* stream) { |
| 932 | const uint32_t stream_id = stream->stream_id(); |
no test coverage detected