MCPcopy Create free account
hub / github.com/apache/brpc / FindMessageStream

Method FindMessageStream

src/brpc/policy/rtmp_protocol.cpp:920–929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

918}
919
920bool 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
931bool RtmpContext::AddClientStream(RtmpStreamBase* stream) {
932 const uint32_t stream_id = stream->stream_id();

Callers 12

OnSetBufferLengthMethod · 0.80
OnAudioMessageMethod · 0.80
OnVideoMessageMethod · 0.80
OnDataMessageAMF0Method · 0.80
OnStatusMethod · 0.80
OnPlayMethod · 0.80
OnPlay2Method · 0.80
OnDeleteStreamMethod · 0.80
OnCloseStreamMethod · 0.80
OnPublishMethod · 0.80
OnSeekMethod · 0.80
OnPauseMethod · 0.80

Calls 1

seekMethod · 0.45

Tested by

no test coverage detected