mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #354, remove the double underscore functions and variables.
This commit is contained in:
parent
7065db192c
commit
bbac2348db
31 changed files with 280 additions and 256 deletions
|
@ -772,7 +772,7 @@ SrsRtspOptionsResponse::~SrsRtspOptionsResponse()
|
|||
|
||||
int SrsRtspOptionsResponse::encode_header(stringstream& ss)
|
||||
{
|
||||
SrsRtspMethod __methods[] = {
|
||||
SrsRtspMethod rtsp_methods[] = {
|
||||
SrsRtspMethodDescribe,
|
||||
SrsRtspMethodAnnounce,
|
||||
SrsRtspMethodGetParameter,
|
||||
|
@ -789,9 +789,9 @@ int SrsRtspOptionsResponse::encode_header(stringstream& ss)
|
|||
ss << SRS_RTSP_TOKEN_PUBLIC << ":" << SRS_RTSP_SP;
|
||||
|
||||
bool appended = false;
|
||||
int nb_methods = (int)(sizeof(__methods) / sizeof(SrsRtspMethod));
|
||||
int nb_methods = (int)(sizeof(rtsp_methods) / sizeof(SrsRtspMethod));
|
||||
for (int i = 0; i < nb_methods; i++) {
|
||||
SrsRtspMethod method = __methods[i];
|
||||
SrsRtspMethod method = rtsp_methods[i];
|
||||
if (((int)methods & (int)method) != (int)method) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue