1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Refine typo in app.

This commit is contained in:
winlin 2019-04-30 08:24:52 +08:00
parent aac8a13f42
commit 45009785fb
27 changed files with 409 additions and 703 deletions

View file

@ -52,9 +52,7 @@ class SrsSimpleStream;
class SrsPithyPrint;
class SrsSimpleRtmpClient;
/**
* a rtp connection which transport a stream.
*/
// A rtp connection which transport a stream.
class SrsRtpConn: public ISrsUdpHandler
{
private:
@ -75,9 +73,7 @@ public:
virtual srs_error_t on_udp_packet(const sockaddr* from, const int fromlen, char* buf, int nb_buf);
};
/**
* audio is group by frames.
*/
// The audio cache, audio is grouped by frames.
struct SrsRtspAudioCache
{
int64_t dts;
@ -88,9 +84,7 @@ struct SrsRtspAudioCache
virtual ~SrsRtspAudioCache();
};
/**
* the time jitter correct for rtsp.
*/
// The time jitter correct for rtsp.
class SrsRtspJitter
{
private:
@ -105,9 +99,7 @@ public:
virtual srs_error_t correct(int64_t& ts);
};
/**
* the rtsp connection serve the fd.
*/
// The rtsp connection serve the fd.
class SrsRtspConn : public ISrsCoroutineHandler
{
private:
@ -176,16 +168,14 @@ private:
virtual void close();
};
/**
* the caster for rtsp.
*/
// The caster for rtsp.
class SrsRtspCaster : public ISrsTcpHandler
{
private:
std::string output;
int local_port_min;
int local_port_max;
// key: port, value: whether used.
// The key: port, value: whether used.
std::map<int, bool> used_ports;
private:
std::vector<SrsRtspConn*> clients;
@ -193,19 +183,15 @@ public:
SrsRtspCaster(SrsConfDirective* c);
virtual ~SrsRtspCaster();
public:
/**
* alloc a rtp port from local ports pool.
* @param pport output the rtp port.
*/
// Alloc a rtp port from local ports pool.
// @param pport output the rtp port.
virtual srs_error_t alloc_port(int* pport);
/**
* free the alloced rtp port.
*/
// Free the alloced rtp port.
virtual void free_port(int lpmin, int lpmax);
// interface ISrsTcpHandler
public:
virtual srs_error_t on_tcp_client(srs_netfd_t stfd);
// internal methods.
// internal methods.
public:
virtual void remove(SrsRtspConn* conn);
};