1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 20:01:56 +00:00

For #1638, #307, add comments for api and enum

This commit is contained in:
winlin 2020-03-16 22:01:09 +08:00
parent 2f0b150588
commit c2a667cc35
4 changed files with 3 additions and 1 deletions

View file

@ -818,6 +818,7 @@ srs_error_t SrsGoApiSdp::serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage*
string app = app_obj->to_str();
string stream_name = stream_name_obj->to_str();
// TODO: FIXME: It seems remote_sdp doesn't represents the full SDP information.
SrsSdp remote_sdp;
err = remote_sdp.decode(remote_sdp_str);
if (err != srs_success) {

View file

@ -110,6 +110,7 @@ private:
enum SrsRtcSessionStateType
{
// TODO: FIXME: Should prefixed by enum name.
INIT = -1,
WAITING_STUN = 1,
DOING_DTLS_HANDSHAKE = 2,

View file

@ -327,7 +327,6 @@ srs_error_t SrsMessageQueue::dump_packets(int max_count, SrsSharedPtrMessage** p
return err;
}
srs_error_t SrsMessageQueue::dump_packets(SrsConsumer* consumer, bool atc, SrsRtmpJitterAlgorithm ag)
{
srs_error_t err = srs_success;

View file

@ -325,6 +325,7 @@ public:
virtual SrsSharedPtrMessage* pop();
};
// To find the RTP packet for RTX or restore.
class SrsRtpPacketQueue
{
private: