mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix misspelling error in app config. v6.0.133 (#4077)
1. misspelling fix; 2. remove finished TODO; --------- Co-authored-by: Haibo Chen <495810242@qq.com>
This commit is contained in:
parent
7ab012c60f
commit
75ddd8f5b6
14 changed files with 156 additions and 155 deletions
|
@ -110,7 +110,7 @@ srs_error_t SrsPacket::to_msg(SrsCommonMessage* msg, int stream_id)
|
|||
header.payload_length = size;
|
||||
header.message_type = get_message_type();
|
||||
header.stream_id = stream_id;
|
||||
header.perfer_cid = get_prefer_cid();
|
||||
header.prefer_cid = get_prefer_cid();
|
||||
|
||||
if ((err = msg->create(&header, payload, size)) != srs_success) {
|
||||
return srs_error_wrap(err, "create %dB message", size);
|
||||
|
@ -200,9 +200,9 @@ SrsProtocol::SrsProtocol(ISrsProtocolReadWriter* io)
|
|||
}
|
||||
for (int cid = 0; cid < SRS_PERF_CHUNK_STREAM_CACHE; cid++) {
|
||||
SrsChunkStream* cs = new SrsChunkStream(cid);
|
||||
// set the perfer cid of chunk,
|
||||
// set the prefer cid of chunk,
|
||||
// which will copy to the message received.
|
||||
cs->header.perfer_cid = cid;
|
||||
cs->header.prefer_cid = cid;
|
||||
|
||||
cs_cache[cid] = cs;
|
||||
}
|
||||
|
@ -740,7 +740,7 @@ srs_error_t SrsProtocol::send_and_free_messages(SrsSharedPtrMessage** msgs, int
|
|||
continue;
|
||||
}
|
||||
|
||||
// check perfer cid and stream,
|
||||
// check prefer cid and stream,
|
||||
// when one msg stream id is ok, ignore left.
|
||||
if (msg->check(stream_id)) {
|
||||
break;
|
||||
|
@ -812,9 +812,9 @@ srs_error_t SrsProtocol::recv_interlaced_message(SrsCommonMessage** pmsg)
|
|||
// chunk stream cache miss, use map.
|
||||
if (chunk_streams.find(cid) == chunk_streams.end()) {
|
||||
chunk = chunk_streams[cid] = new SrsChunkStream(cid);
|
||||
// set the perfer cid of chunk,
|
||||
// set the prefer cid of chunk,
|
||||
// which will copy to the message received.
|
||||
chunk->header.perfer_cid = cid;
|
||||
chunk->header.prefer_cid = cid;
|
||||
} else {
|
||||
chunk = chunk_streams[cid];
|
||||
}
|
||||
|
|
|
@ -114,8 +114,8 @@ public:
|
|||
// Encode functions for concrete packet to override.
|
||||
public:
|
||||
// The cid(chunk id) specifies the chunk to send data over.
|
||||
// Generally, each message perfer some cid, for example,
|
||||
// all protocol control messages perfer RTMP_CID_ProtocolControl,
|
||||
// Generally, each message prefer some cid, for example,
|
||||
// all protocol control messages prefer RTMP_CID_ProtocolControl,
|
||||
// SrsSetWindowAckSizePacket is protocol control message.
|
||||
virtual int get_prefer_cid();
|
||||
// The subpacket must override to provide the right message type.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue